private RequestAuditEventCreator selectCreator(Resource.Type resourceType, ResultStatus resultStatus, Request.Type requestType) {

    RequestAuditEventCreator selected = null;
    Integer priority = -1;

    for (RequestAuditEventCreator creator : creators) {
      Integer creatorPriority = getPriority(creator, resourceType, resultStatus, requestType);
      if (creatorPriority != null && priority < creatorPriority) {
        priority = creatorPriority;
        selected = creator;
      }
    }
    return selected;
  }
Select the proper creator. Priority order: resourceType > resultStatus > requestType
The most matching creator is returned
If there is no creator found, then null is returned.
@param resourceType
@param requestType
@param resultStatus
@return
ambari-server/src/main/java/org/apache/ambari/server/audit/request/RequestAuditLoggerImpl.java