public static Command valueOfName(final String name) {
      for (Command command : values()) {
        if (command.getName().equalsIgnoreCase(name)) {
          return command;
        }
      }

      return null;
    }
Looks up a Locator launcher command by name. The equality comparison on name is
case-insensitive.

@param name a String value indicating the name of the Locator launcher command.
@return an enumerated type representing the command name or null if the no such command with
        the specified name exists.
geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java