code: public static EventType getEventType(Key key)
      {
          Key ek = findAncestor(Repository.EVENTTYPE, key);
          return EventType.values()[(int)ek.getId()-1];
      }
docs: Returns current EventType from EventType, Event or Reservation keys
  @param key
  @return