private static List<String> hostNames(Collection<ServiceComponentHost> hosts) {
    return hosts.stream().map(ServiceComponentHost::getHostName).collect(toList());
  }
Populates the identities with an empty list
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/RemovableIdentities.java