private boolean isSubCategory(Set<String> properties, String subCategoryName) {
    for (String property : properties) {
      if (subCategoryName.startsWith(property)) {
        return true;
      }
    }
    return false;
  }
Checks if properties contains a category for the subCategoryName
Example: metrics/yarn/Queue/root/ActiveApplications and metrics/yarn/Queue

@param properties categories
@param subCategoryName subcategory
@return
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/MinimalRenderer.java