public void addServiceCheckAction(String serviceName) {
    String actionName = serviceName + SERVICE_CHECK_POSTFIX;

    if(SERVICE_CHECKS.containsKey(serviceName)) {
      actionName = SERVICE_CHECKS.get(serviceName);
    }

    serviceCheckActions.put(serviceName.toLowerCase(), actionName);
    serviceActions.put(serviceName.toLowerCase(), Arrays.asList(actionName));
  }
Get service name by service check action name
@param serviceCheckAction service check action name like ZOOKEEPER_QUORUM_SERVICE_CHECK
@return service name (capitalized) or null if not found
ambari-server/src/main/java/org/apache/ambari/server/metadata/ActionMetadata.java