log.error("NoSuchFieldException caught trying to get the DefaultMapperFactory from ConfigurableMapper", e);
return;
}
privateFactory.setAccessible(true);
DefaultMapperFactory factory;
try {
factory = (DefaultMapperFactory) privateFactory.get(this);
} catch (IllegalAccessException e) {
log.error("IllegalAccessException caught trying to get the DefaultMapperFactory from ConfigurableMapper", e);
return;
}
factory.getConverterFactory().registerConverter("imageConverter", imageConverter);
factory.getConverterFactory().registerConverter("imageCollectionConverter", imageCollectionConverter);
registerApplication(factory);
registerCategory(factory);
registerOrganization(factory);
registerApplicationVersion(factory);
registerGroup(factory);