package devopsdistilled.operp.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import devopsdistilled.operp.client.context.AppContext;
import devopsdistilled.operp.client.main.MainWindow;

public class ClientApp {
	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(
				AppContext.class);

		MainWindow window = context.getBean(MainWindow.class);
		window.init();

		System.out.println(context);
	}
}

@@ -305,16 +305,144 @@
 ntApp %7B%0A
+%0A%09private static ApplicationContext context;%0A%0A%09public static ApplicationContext getApplicationContext() %7B%0A%09%09return context;%0A%09%7D%0A%0A
 %09public 
@@ -477,35 +477,16 @@
 gs) %7B%0A%09%09
-ApplicationContext 
 context 
@@ -530,13 +530,8 @@
 ext(
-%0A%09%09%09%09
 AppC

Create static instance of ApplicationContext for global reference