private static DatatypeFactory dataTypeFactory() {
        if (dataTypeFactory == null) {
            try {
                dataTypeFactory = DatatypeFactory.newInstance();
            } catch (DatatypeConfigurationException e) {
                throw new MappingException(e);
            }
        }
        return dataTypeFactory;
    }
Returns a new instance of DatatypeFactory, or the cached one if previously created.

@return instance of DatatypeFactory
core/src/main/java/com/github/dozermapper/core/converters/XMLGregorianCalendarConverter.java