System.setProperty("loggingLevel", "debug");
factory = createContext("services.xml", createContext("services-root.xml", null));
}
protected final static ApplicationContext createContext(String configLocation, ApplicationContext parent) {
XmlApplicationContext factory = new XmlApplicationContext(new FileSystemResource(new File(srcdir,
configLocation)), parent);
factory.getBeanFactory().registerScope("request", new RequestScope());
return factory;
}