// add the package to a rulebase
final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage( pkg );
AlphaNetworkCompiler compiler = new AlphaNetworkCompiler();
for(ObjectTypeNode node : ( (InternalRuleBase) ruleBase).getRete().getObjectTypeNodes() ){
compiler.compile( node );
}
// StatefulSession session = ruleBase.newStatefulSession();
//
// String filename;