public static Set<String> getAssociatedPropertyIds(Request request) {
    Set<String> ids = request.getPropertyIds();

    if (ids != null) {
      ids = new HashSet<>(ids);
    } else {
      ids = new HashSet<>();
    }

    Set<Map<String, Object>> properties = request.getProperties();
    if (properties != null) {
      for (Map<String, Object> propertyMap : properties) {
        ids.addAll(propertyMap.keySet());
      }
    }
    return ids;
  }
Get all of the property ids associated with the given request.

@param request  the request

@return the associated properties
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/PropertyHelper.java