logger.debug(" ### Calling Execute from the SKS Remote Client with instanceId: "+this.instanceId);
}
Object result = null;
if(command instanceof AsyncBatchExecutionCommandImpl){
CommandImpl cmd = new CommandImpl( "execute",
Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new ExecuteCommand( command , false),
null,
null,
this.instanceId,
kresultsId ),this.instanceId} ) );
ConversationUtil.sendAsyncMessage( this.cm,
(InetSocketAddress) this.gsd.getAddresses().get( "socket" ).getObject(),
this.gsd.getId(),
cmd );
// Result must be null if it's async
}else{
CommandImpl cmd = new CommandImpl( "execute",
Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new ExecuteCommand( command , true),
null,
null,
this.instanceId,
kresultsId ),this.instanceId} ) );