private void checkSortRequestProperties(SortRequest sortRequest, Type type,
                                          ResourceProvider provider) throws UnsupportedPropertyException {
    Set<String> requestPropertyIds = provider.checkPropertyIds(
      new HashSet<>(sortRequest.getPropertyIds()));

    if (requestPropertyIds.size() > 0) {
      List<PropertyProvider> propertyProviders = ensurePropertyProviders(type);
      for (PropertyProvider propertyProvider : propertyProviders) {
        requestPropertyIds = propertyProvider.checkPropertyIds(requestPropertyIds);
        if (requestPropertyIds.size() == 0) {
          return;
        }
      }
      throw new UnsupportedPropertyException(type, requestPropertyIds);
    }
  }
Check whether properties specified with a @SortRequest are supported by
the @ResourceProvider.

@param sortRequest @SortRequest
@param type @Type
@param provider @ResourceProvider
@throws UnsupportedPropertyException
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterControllerImpl.java