ClassFileTransformer enhancer = new Enhancer(new JpaEnhancerVisitorFactory(
loader.getEntityMap()));
Map<String, JpaClassDescriptor> managedClasses = loader
.getEntityMap()
.getManagedClasses();
unit.addTransformer(new UnitClassTransformer(managedClasses, loader
.getContext()
.getTempClassLoader(), enhancer));
DataMapConverter converter = new DataMapConverter();
DataMap cayenneMap = converter.toDataMap(name, loader.getContext());