public boolean isCollection() {
    return m_isCollection;
  }
Whether the sub-resource is a collection.

@return  true if a collection, false if an instance
ambari-server/src/main/java/org/apache/ambari/server/api/resources/SubResourceDefinition.java