processors.add(new ClassLoaderXmlPreprocessor(new File(".")));
System.out.println("Loading Apache ServiceMix from file: " + file);
context = new FileSystemXmlApplicationContext(new String[] {file}, false, processors);
}
context.setValidating(false);
context.refresh();
SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");
container.onShutDown(new Runnable() {
public void run() {
if (context instanceof DisposableBean) {