KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
TraitFactory.setMode( TraitFactory.VirtualPropertyMode.MAP, kbase ); // not relevant
kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
TraitRegistry tr = ((ReteooRuleBase) ((KnowledgeBaseImpl) kbase).getRuleBase()).getConfiguration().getComponentFactory().getTraitRegistry();
System.out.println( tr.getHierarchy() );
Entity ent = new Entity( "x" );
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.insert( ent );