private Boolean isServiceCheckCommand(String command, String service) {
    List<String> actions = actionMetadata.getActions(service);

    return !(actions == null || actions.size() == 0) && actions.contains(command);
  }
Helper class containing logic to process custom command execution requests .
This class has special support needed for SERVICE_CHECK and DECOMMISSION.
These commands are not pass through as Ambari has specific persistence requirements.
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java