protected static boolean isPropertyCategoryRequested(String propertyId, Set<String> requestedIds) {
    String category = PropertyHelper.getPropertyCategory(propertyId);
    while (category != null ) {
      if (requestedIds.contains(category)) {
        return true;
      }
      category = PropertyHelper.getPropertyCategory(category);
    }
    return false;
  }
Determine whether or not any of the requested ids are a category for the given property.
For example, if the given property is 'category/subcategory/property' and the set of requested ids
contains 'category' or 'category/subcategory' then this method should return true.

@param propertyId    the property id
@param requestedIds  the requested set of property ids

@return true if the given property's category is part of the given set of requested ids
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BaseProvider.java