public String describe() {
    int maxServicesToShow = 3;
    StringBuilder sb = new StringBuilder("Add Services: ")
      .append(newServices.keySet().stream().sorted().limit(maxServicesToShow).collect(joining(", ")));
    if (newServices.size() > maxServicesToShow) {
      sb.append(" and ").append(newServices.size() - maxServicesToShow).append(" more");
    }
    sb.append(" to cluster ").append(clusterName);
    return sb.toString();
  }
Creates a descriptive label to be displayed in the UI.
ambari-server/src/main/java/org/apache/ambari/server/topology/addservice/AddServiceInfo.java