if ( !msg.isAsync() && localKresults.getIdentifiers().isEmpty() ) {
// if it's not an async invocation and their are no results, just send a simple notification message
session.write( new Message( msg.getSessionId(),
msg.getResponseId(),
msg.isAsync(),
new FinishedCommand() ), null );
} else {
// return the payload
session.write( new Message( msg.getSessionId(),
msg.getResponseId(),
msg.isAsync(),