* @param trans the transition, not null
   * @return the offset info, not null
   */
  private Object findOffsetInfo(LocalDateTime dt, ZoneOffsetTransition trans) {

    LocalDateTime localTransition = trans.getDateTimeBefore();
    if (trans.isGap()) {
      if (dt.isBefore(localTransition)) {
        return trans.getOffsetBefore();
      }
      if (dt.isBefore(trans.getDateTimeAfter())) {
        return trans;
      } else {
        return trans.getOffsetAfter();
      }
    } else {
      if (dt.isBefore(localTransition) == false) {
        return trans.getOffsetAfter();
      }
      if (dt.isBefore(trans.getDateTimeAfter())) {
        return trans.getOffsetBefore();
      } else {
        return trans;
      }
    }
  }