private static ServiceExclude excludeService(String excludedServiceName) {
    return serviceName -> excludedServiceName.equals(serviceName);
  }
Populates the identities with an empty list
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/RemovableIdentities.java