public static Service fromString(String serviceName) {
      try {
        return valueOf(serviceName.toUpperCase());
      } catch (Exception ignore) {
        return OTHER;
      }
    }
Class that determines hosts that are active or standby for services that
support HA
ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java