public CommandExecutor lookup(String identifier) {
try {
String commandId = "client.lookup" + messageSession.getNextId();
String kresultsId = "kresults_" + messageSession.getSessionId();
Message msg = new Message(messageSession.getSessionId(), messageSession.getCounter().incrementAndGet(), false, new KnowledgeContextResolveFromContextCommand(new LookupCommand(identifier, commandId), null, null, null, kresultsId));
//System.out.println("Looking up the session with identifier = " + identifier);
client = connection.getDirectoryNode(null).lookup(identifier);
try {
Object object = client.write(msg).getPayload();
if (object == null) {