code: private void displaySplashScreen(BeanFactory beanFactory) {
              this.splashScreen = beanFactory.getBean(SplashScreen.class);
              logger.debug("Displaying application splash screen...");
              try
              {
                  SwingUtilities.invokeAndWait(new Runnable() {
                      public void run() {
                          ApplicationLauncher.this.splashScreen.splash();
                      }
                  });
              }
              catch (Exception e)
              {
                  throw new RuntimeException("EDT threading issue while showing splash screen", e);
              }
      }
docs: Searches the given bean factory for a {@link SplashScreen} and displays it.
  
  @param beanFactory The bean factory that is expected to contain the
  splash screen bean definition. Must not be null.
  
  @throws NullPointerException if {@code beanFactory} is null.
  @throws org.springframework.beans.factory.BeanNotOfRequiredTypeException if the bean found under the splash
  screen bean name is not a {@link SplashScreen}.