public Predicate getProcessedPredicate() {
    return lastVisited;
  }
Get a new predicate with all sub-resource elements contained in the
visited predicate removed.

@return the new predicate
ambari-server/src/main/java/org/apache/ambari/server/api/query/ProcessingPredicateVisitor.java