/**
   * Creates the Timer for the serverPush mechanism. In it we call to different DB methods for
   * showing different result sets.
   */
  private void createServerPushTimer() {

    this.moduleTimer = new Timer();
    // timer doesn't work without a page as parent
    Window win = (Window) Path.getComponent("/outerIndexWindow");
    this.moduleTimer.setPage(win.getPage());

    this.moduleTimer.setDelay(getDelay());
    this.moduleTimer.setRepeats(true);
    this.moduleTimer.addEventListener(
        "onTimer",
        new EventListener() {

          @Override
          public void onEvent(Event event) throws Exception {
            doReadData();
          }
        });

    // start the timer
    if (this.moduleTimer != null) {
      this.moduleTimer.setRunning(true);
    }
  }