String commandName = SEARCH_CMD;  switch (method) { case GET: commandName = super.getCommandName(method, req); if ( !ENTRY_CMD.equals(commandName) && !SEARCH_CMD.equals(commandName) ) commandName = null;  break; case PUT: commandName = PUTENTRY_CMD; break; case POST: commandName = ADD_CMD; break; case DELETE: commandName = DEL_CMD; break;
String commandName = super.getCommandName(method, req);  if ( ENTRY_CMD.equals(commandName) ) { switch (method) { case GET: commandName = ENTRY_CMD; break; case PUT: commandName = PUTENTRY_CMD; break; case POST: commandName = ADD_CMD; break; case DELETE: commandName = DEL_CMD; break; } } else if ( SEARCH_CMD.equals(commandName) && method == GET ) { return SEARCH_CMD; } else { commandName = null;
    protected String getCommandName(int method, HttpServletRequest req)    {        String commandName = SEARCH_CMD;                switch (method) {            case GET:                commandName = super.getCommandName(method, req);                if ( !ENTRY_CMD.equals(commandName) && !SEARCH_CMD.equals(commandName) )                    commandName = null;                                break;            case PUT:                commandName = PUTENTRY_CMD;                break;            case POST:                commandName = ADD_CMD;                break;            case DELETE:                commandName = DEL_CMD;                break;        }                return commandName;    }