private String getProperty(Request request, String propertyName) {
    if (!request.getBody().getPropertySets().isEmpty()) {
      return String.valueOf(request.getBody().getPropertySets().iterator().next().get(propertyName));
    }
    return null;
  }
Returns property from the request based on the propertyName parameter
@param request
@param propertyName
@return
ambari-server/src/main/java/org/apache/ambari/server/audit/request/eventcreator/RequestEventCreator.java