code: @Nonnull
    public static IScheduler getScheduler (final boolean bStartAutomatically)
    {
      try
      {
        // Don't try to use a name - results in NPE
        final IScheduler aScheduler = s_aSchedulerFactory.getScheduler ();
        if (bStartAutomatically && !aScheduler.isStarted ())
          aScheduler.start ();
        return aScheduler;
      }
      catch (final SchedulerException ex)
      {
        throw new IllegalStateException ("Failed to create" +
                                         (bStartAutomatically ? " and start" : "") +
                                         " scheduler!",
                                         ex);
      }
    }
docs: Get the underlying Quartz scheduler
  
  @param bStartAutomatically
  If <code>true</code> the returned scheduler is automatically
  started. If <code>false</code> the state is not changed.
  @return The underlying Quartz scheduler. Never <code>null</code>.