code: public static SystemMain getSystem() {
          try {
              _gate.await();
              return _system;
          } catch (InterruptedException ex) {
              _logger.warn("Interrupted while waiting for startup to complete.");
              return null;
          }
      }
docs: Returns the system main instance.
  
  @return  The system main instance or null if the system was interrupted during initialization.