code: private EventTypeEnum getEventType(Message message) {
          boolean isRequestor = MessageUtils.isRequestor(message);
          boolean isFault = MessageUtils.isFault(message);
          boolean isOutbound = MessageUtils.isOutbound(message);
  
          //Needed because if it is rest request and method does not exists had better to return Fault
          if(!isFault && isRestMessage(message)) {
              isFault = (message.getExchange().get("org.apache.cxf.resource.operation.name") == null);
              if (!isFault) {
                  Integer responseCode = (Integer) message.get(Message.RESPONSE_CODE);
                  if (null != responseCode) {
                      isFault = (responseCode >= 400);
                  }
              }
          }
          if (isOutbound) {
              if (isFault) {
                  return EventTypeEnum.FAULT_OUT;
              } else {
                  return isRequestor ? EventTypeEnum.REQ_OUT : EventTypeEnum.RESP_OUT;
              }
          } else {
              if (isFault) {
                  return EventTypeEnum.FAULT_IN;
              } else {
                  return isRequestor ? EventTypeEnum.RESP_IN : EventTypeEnum.REQ_IN;
              }
          }
      }
docs: Gets the event type from message.
  
  @param message the message
  @return the event type