protected Iterable<Resource> getResourceIterable(Type type, Request request,
                                                   Predicate predicate)
      throws UnsupportedPropertyException,
      SystemException,
      NoSuchParentResourceException,
      NoSuchResourceException {
    return getResources(type, request, predicate, null, null).getIterable();
  }
Get an iterable set of resources filtered by the given request and
predicate objects.

@param type       type of resources
@param request    the request
@param predicate  the predicate object which filters which resources are returned

@return a page response representing the requested page of resources

@throws UnsupportedPropertyException thrown if the request or predicate contain
                                     unsupported property ids
@throws SystemException an internal exception occurred
@throws NoSuchResourceException no matching resource(s) found
@throws NoSuchParentResourceException a specified parent resource doesn't exist
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterControllerImpl.java