package com.foomango;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp {
    public static void main(String[] args) {
        ApplicationContext context =
            new ClassPathXmlApplicationContext("Bean.xml");

        HelloWorld obj = (HelloWorld) context.getBean("helloworld");

        obj.getMessage();
    }
}

@@ -170,16 +170,64 @@
 inApp %7B%0A
+    private static ApplicationContext context;%0A%0A
     publ
@@ -275,48 +275,17 @@
     
-ApplicationContext context =%0A           
+context =
  new
@@ -426,16 +426,25 @@
 sage();%0A
+        %0A
     %7D%0A%7D%0A

Fix eclipse warning