code: @Deprecated
      public int getEventCode() {
          Integer legacyCode =  legacyEventCodes.get(eventType);
          // Returns -1 if the event type does not have a legacy event code
          return legacyCode == null ? -1 : legacyCode;
      }
docs: Returns the unique event code identifying the type of event this object
  represents.
  
  @return The unique event code that identifies what type of specific type
  of event this object represents.
  
  @deprecated Use {@link #getEventType()} instead.