private boolean populateResourceRequired(Resource.Type type) {
    ResourceProvider resourceProvider = clusterController.ensureResourceProvider(type);
    Set<String> unsupportedProperties =
      resourceProvider.checkPropertyIds(PredicateHelper.getPropertyIds(processedPredicate));
    return !unsupportedProperties.isEmpty() || hasSubResourcePredicate();
  }
@param type the resource type
@return whether sub-resources is in processed predicate
ambari-server/src/main/java/org/apache/ambari/server/api/query/QueryImpl.java