private Map<String, ClassMap> loadMappings(DozerBeanMapper mapper) {
// TODO: This is a little wasteful as dozer has already parsed this
// information, if does not expose it though so it must be done again.
// Create a patch for Dozer to expose this.
CustomMappingsLoader customMappingsLoader = new CustomMappingsLoader();
LoadMappingsResult loadMappingsResult = customMappingsLoader.load(mapper.getMappingFiles());
Map<String, ClassMap> all = loadMappingsResult.getCustomMappings().getAll();
return all;
}
public CamelContext getCamelContext() {