//Load Application Context.
ApplicationContext myContext = new ClassPathXmlApplicationContext("trams/spring/context.xml");
//Display splash screen to the user.
SplashScreen ss = (SplashScreen) myContext.getBean("splashScreen");
ss.setStarted();
while ( ss.notFinished() ) {
try { Thread.sleep(1000); } catch ( InterruptedException ie ) { }
}
ss.dispose();
UserInterface ui = new UserInterface();
new WelcomeScreen(ui);