String kresultsId = "kresults_" + this.gsd.getId();
//The work item handler implementation should be in the remote location
//The work item will be instantiated in the remote location using reflection
CommandImpl cmd = new CommandImpl("execute",
Arrays.asList(new Object[]{ new KnowledgeContextResolveFromContextCommand( new RegisterWorkItemHandlerRemoteCommand( workItemName,
handler.getClass().getCanonicalName() ),
null,
null,
this.instanceId,
kresultsId )}));