public Predicate getAmendedPredicate(Predicate predicate) {
      if (ReadOnlyResourceProvider.class.isInstance(resourceProvider)) {
        return ((ReadOnlyResourceProvider) resourceProvider).amendPredicate(predicate);
      } else {
        return null;
      }
    }
@return the amended predicate, or {@code null} to use the provided one
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterControllerImpl.java