docs: @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;
      }