if( subObject != null ) {
StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
// THe following 3 lines are the important ones! (See below for an explanation)
KnowledgeBase cleanKBase = KnowledgeBaseFactory.newKnowledgeBase();
cleanKBase.addKnowledgePackages(ksession.getKnowledgeBase().getKnowledgePackages());
StatefulKnowledgeSession commandKSession = JPAKnowledgeService.newStatefulKnowledgeSession( cleanKBase, null, initializeEnvironment() );
/**
* Here's what's going on:
* If the SingleSessionCommandService (SSCS) & JtaTransactionManager (JTM) were _not_ aware of transactions,