public static Map<String, Object> getProperties(Predicate predicate) {
    if (predicate == null) {
      return Collections.emptyMap();
    }
    PropertyPredicateVisitor visitor = new PropertyPredicateVisitor();
    visit(predicate, visitor);
    return visitor.getProperties();
  }
Get a map of property values from a given predicate.

@param predicate  the predicate

@return the map of properties
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/PredicateHelper.java