{
Repository.setRepository(new JPOXRepository(clr));
}
// define the generated class in the classloader so we populate the metadata
EnhancerClassLoader loader = new EnhancerClassLoader();
loader.defineClass(fullClassName, getBytes(), clr);
// Create MetaData for the implementation
ClassMetaData implementationCmd = new BCELClassMetaData((InterfaceMetaData)inputCmd, className, javaClass);
ClassLoaderResolver genclr = new JDOClassLoaderResolver(loader);
implementationCmd.populate(genclr, null);