}
public KieModuleKieProject(InternalKieModule kieModule, ClassLoader parent) {
this.kieModule = kieModule;
if( parent == null ) {
ClassLoaderResolver resolver;
try {
resolver = ServiceRegistryImpl.getInstance().get(ClassLoaderResolver.class);
} catch ( Exception cne ) {
resolver = new NoDepsClassLoaderResolver();
}
parent = resolver.getClassLoader( kieModule );
}
this.cl = createProjectClassLoader( parent, createKieModuleResourceProvider(kieModule) );
}