code: @Override
  	protected void preparePaintComponent(final Request request) {
  		super.preparePaintComponent(request);
  
  		if (!isInitialised()) {
  			// If the timeout period is "zero", then use the session timeout interval.
  			if (getTimeoutPeriod() == 0) {
  				int max = request.getMaxInactiveInterval();
  				this.setTimeoutPeriod(max);
  			}
  			setInitialised(true);
  		}
  	}
docs: Initialise by setting the timeout to the HTTPSession maxInactiveInterval if the timeoutPeriod has not yet been
  set. {@inheritDoc}