if( ksession instanceof StatefulKnowledgeSessionImpl ) {
kresults = ((StatefulKnowledgeSessionImpl)ksession).execute(context, this.command );
}
else {
// Graceful failure
kresults = ksession.execute(this.command);
}
if ( this.outIdentifier != null ) {
((ExecutionResultImpl)((KnowledgeCommandContext) context ).getExecutionResults()).getResults().put( this.outIdentifier, kresults );
}