=== modified file 'dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/JacksonUtils.java' --- dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/JacksonUtils.java 2012-03-22 15:11:32 +0000 +++ dhis-2/dhis-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/JacksonUtils.java 2012-03-22 15:14:01 +0000 @@ -98,6 +98,20 @@ } //--------------------------------------------------------------------------------------------------- + // Global pre-configured instances of ObjectMapper and XmlMapper + //--------------------------------------------------------------------------------------------------- + + public static ObjectMapper getJsonMapper() + { + return jsonMapper; + } + + public static XmlMapper getXmlMapper() + { + return xmlMapper; + } + + //--------------------------------------------------------------------------------------------------- // JSON //---------------------------------------------------------------------------------------------------