try {
byte[] wrapper = new TraitCoreWrapperClassBuilderImpl().buildClass(coreDef);
JavaDialectRuntimeData data = ((JavaDialectRuntimeData) getPackage( pack ).getDialectRuntimeRegistry().
getDialectData( "java" ));
data.write(JavaDialectRuntimeData.convertClassToResourcePath(wrapperName), wrapper);
data.onBeforeExecute();
} catch ( Exception e ) {
}
Class<CoreWrapper<K>> wrapperClass = (Class<CoreWrapper<K>>) ruleBase.getRootClassLoader().loadClass( wrapperName, true );