private void processRequestedProperties(TreeNode<QueryInfo> queryTree) {
    QueryInfo queryInfo = queryTree.getObject();
    if (queryInfo != null) {
      Resource.Type type = queryInfo.getResource().getType();
      Set<String> properties = m_originalProperties.get(type);
      if (properties == null) {
        properties = new HashSet<>();
        m_originalProperties.put(type, properties);
      }
      properties.addAll(queryInfo.getProperties());
      for (TreeNode<QueryInfo> child : queryTree.getChildren()) {
        processRequestedProperties(child);
      }
    }
  }
Recursively save all requested properties to check the result
properties against.

@param queryTree  query tree to process
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/MinimalRenderer.java