private LinkedList<Resource> getEvaluatedResources(ResourceIterable
                                              resourceIterable) {
    LinkedList<Resource> resources = new LinkedList<>();
    if (resourceIterable != null) {
      for (Resource resource : resourceIterable) {
        resources.add(resource);
      }
    }
    return resources;
  }
Evaluate the predicate and create a list of filtered resources

@param resourceIterable @ResourceIterable
@return @LinkedList of filtered resources
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterControllerImpl.java