code: public EventType getType() {
          String typeStr = getTypeString();
          EventType type = null;
          try {
              type = EventType.valueOf(typeStr);
          } catch (Exception ex) {
              logger.warn("Unexpected type: " + typeStr);
          }
          return type;
      }
docs: Returns the EventType for this event.
  
  @return EventType enum