private boolean isCollection(TreeNode<Resource> node) {
    String isCollection = node.getStringProperty("isCollection");
    return isCollection != null && isCollection.equals("true");
  }
Determine whether a node represents a collection.

@param node  node which is evaluated for being a collection

@return true if the node represents a collection; false otherwise
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/ClusterBlueprintRenderer.java