public Predicate getSubResourcePredicate() {
    return lastVisited;
  }
Obtain a predicate that can be evaluated with sub resources
belonging to the associated category.

@return a sub resource predicate
ambari-server/src/main/java/org/apache/ambari/server/api/query/SubResourcePredicateVisitor.java