cmds.add( new KnowledgeBuilderAddCommand( ResourceFactory.newByteArrayResource( str.getBytes() ),
ResourceType.DRL,
null ) );
cmds.add( new NewKnowledgeBaseCommand( null ) );
cmds.add( new SetVariableCommandFromLastReturn( ContextManager.ROOT,
KnowledgeBase.class.getName() ) );
cmds.add( new KnowledgeBaseAddKnowledgePackagesCommand() );