if ( results == null ) {
results = new ExecutionResultImpl();
}
if ( !(command instanceof BatchExecutionCommandImpl) ) {
return (T) ((GenericCommand) command).execute( new FixedKnowledgeCommandContext( context,
null,
this.kBase,
this,
results ) );
}
try {
startBatchExecution( results );
((GenericCommand) command).execute( new FixedKnowledgeCommandContext( context,
null,
this.kBase,
this,
results ) );
ExecutionResults result = getExecutionResult();