Signature rsig = request.getSignature();
if(rsig != Signature.COMMAND) {
throw new IllegalStateException("Illegal command is passed to CommandProcessor: "
+ rsig);
}
CommandRequest command = (CommandRequest) request;
String[] cmdArg = command.getArgs();
String baseCol = command.getBaseCollection();
DbCollection contextCol = DbCollection.getCollection(baseCol);
Session session = new Session(contextCol);
CommandInvoker invoker = new CommandInvoker(session);