code: @Override
      public TaskService newTaskService() {
          TaskService taskService;
          try {
              taskService = super.newTaskService();
          } catch (IllegalStateException ise) {
              // There is a bug in TaskDeadlinesServiceImpl.initialize where there is no
              // TaskPersistenceContext available on initialization, so it always fails the
              // first time. We don't need theTaskDeadlinesServiceImpl to work the first time,
              // so we try again, since by then the initialization is already done.
              taskService = super.newTaskService();
          }
          return taskService;
      }
docs: {@inheritDoc}