// Creates first class loader and use it to load fact classes
ClassLoader loader1 = new SubvertedClassLoader( new URL[]{getClass().getResource( "/" )},
this.getClass().getClassLoader() );
Class cheeseClass = loader1.loadClass( "org.drools.compiler.Cheese" );
KnowledgeBuilderConfiguration kbuilderConf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null, loader1);
KnowledgeBase kbase = loadKnowledgeBase( kbuilderConf, "test_Dynamic1.drl" );
StatefulKnowledgeSession wm = createKnowledgeSession(kbase);
wm.insert( cheeseClass.newInstance() );
wm.fireAllRules();