return;
}
// TODO replace with proper logging
// System.out.println( "Got <command>: " + commandName );
ImapCommand command = imapCommands.getCommand(commandName);
if (command == null) {
response.commandError("Invalid command.");
return;
}
if (!command.validForState(session.getState())) {
response.commandFailed(command, "Command not valid in this state");
return;
}
command.process(request, response, session);
}