public ExecutionResults execute(Command command) {
return execute(null, command);
}
public ExecutionResults execute(Context context, Command command) {
ExecutionResultImpl results = null;
if ( context != null ) {
results = ( ExecutionResultImpl ) ((KnowledgeCommandContext)context).getExecutionResults();
}
if ( results == null ) {
results = new ExecutionResultImpl();
}
try {
session.startBatchExecution( results );
((GenericCommand)command).execute( new KnowledgeCommandContext( context, null, this.kbase, this, results) );