public static String getNamedProperty(Request request, String propertyName) {
    NamedPropertySet first = Iterables.getFirst(request.getBody().getNamedPropertySets(), null);
    if (first != null && first.getProperties().get(propertyName) instanceof String) {
      return String.valueOf(first.getProperties().get(propertyName));
    }
    return null;
  }
Returns a named property from a request
@param request
@param propertyName
@return
ambari-server/src/main/java/org/apache/ambari/server/audit/request/eventcreator/RequestAuditEventCreatorHelper.java