private List<Map<String, Object>> containedPredicatesToMaps() {

    List<Map<String, Object>> list = new ArrayList<>();

    if (delegate != null) {
      org.apache.commons.collections4.Predicate[] predicates = delegate.getPredicates();

      if (predicates != null) {
        for (org.apache.commons.collections4.Predicate p : predicates) {
          if (p instanceof Predicate) {
            list.add(((Predicate) p).toMap());
          } else {
            throw new UnsupportedOperationException(String.format("Cannot convert a %s to a Map", p.getClass().getName()));
          }
        }
      }
    }

    return list;
  }
Processes the contained predicates into a {@link List} of {@link Map}s.
<p>
This is used to serialize this {@link DelegatedMultiplePredicateContainer} into a {@link Map}

@return a list of maps representing the contained predicates
ambari-server/src/main/java/org/apache/ambari/server/collections/functors/DelegatedMultiplePredicateContainer.java