//We need a way to do it more generic, so we can set whatever we want.
if(object instanceof StatefulKnowledgeSessionRemoteClient){
String localId = UUID.randomUUID().toString();
CommandImpl cmd = new CommandImpl( "registerKsession",
Arrays.asList( new Object[]{identifier, ((StatefulKnowledgeSessionRemoteClient)object).getInstanceId()} ) );
ConversationManager connm = this.grid.get( ConversationManager.class );
ConversationUtil.sendMessage( connm,
(InetSocketAddress) ((Map<String, Address>)this.gsd.getAddresses()).get( "socket" ).getObject(),