code: @Override
      public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException, EJBException {
          Date nextTime = getNextTimeout(ALLOW_CACHED_TIMER_GET_NEXT_TIMEOUT);
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "getNextTimeout: " + nextTime);
  
          return nextTime;
      }
docs: Get the point in time at which the next timer expiration is scheduled
  to occur. <p>
  
  @throws IllegalStateException If this method is invoked while the
  instance is in a state that does not allow access to this method.
  @throws NoSuchObjectLocalException If invoked on a timer that has
  expired or has been cancelled.
  @throws EJBException If this method could not complete due to a
  system-level failure.