private Set<Resource> getResources(Predicate givenPredicate)
      throws SystemException, UnsupportedPropertyException, NoSuchResourceException, NoSuchParentResourceException {

    // TODO : Check for case where we should pass the request out to the cluster controller.
    return getResources(PropertyHelper.getReadRequest(getPKPropertyIds()), givenPredicate);
  }
Helper method to get a configuration request, if one exists.
@param parentCategory  the parent category name.  Checks for a property
   whose category is the parent and marked as a desired config.
@param properties  the properties on the request.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractResourceProvider.java