if (commandName == null) { return false; } String fullName = null; for (Iterator keys = ourCommands.keySet().iterator(); keys.hasNext();) { String[] names = (String[]) keys.next(); for (int i = 0; i < names.length; i++) { if (commandName.equalsIgnoreCase(names[i])) { fullName = names[0]; break; } } if (fullName != null) { break; } }
String fullName = getFullCommandName(commandName);
    public static boolean hasPegRevision(String commandName) {        if (commandName == null) {            return false;        }        String fullName = null;        for (Iterator keys = ourCommands.keySet().iterator(); keys.hasNext();) {            String[] names = (String[]) keys.next();            for (int i = 0; i < names.length; i++) {                if (commandName.equalsIgnoreCase(names[i])) {                    fullName = names[0];                    break;                }            }            if (fullName != null) {                break;            }        }        return fullName != null && ourPegCommands.contains(fullName);    }