public static CommandType getCommandType(final String command) {
            for (CommandType type : CommandType.values()) {
                if (type.matches(command)) {
                    return type;
                }
            }
            return CommandType.Unknown;
        }