private ConfigurationRequest getRequest(Request request, Map<String, Object> properties) {
    String type = (String) properties.get(TYPE);
    String tag  = (String) properties.get(TAG);

    ConfigurationRequest configRequest = new ConfigurationRequest(
        (String) properties.get(CLUSTER_NAME),
        type, tag, new HashMap<>(), new HashMap<>());

    Set<String> requestedIds = request.getPropertyIds();
    if (requestedIds.contains("properties") || requestedIds.contains("*")) {
      configRequest.setIncludeProperties(true);
    }

    return configRequest;
  }
Get a configuration request object from the given map of properties.

@param properties  the map of properties

@return a configuration request
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ConfigurationResourceProvider.java