processors.add(new ClassLoaderXmlPreprocessor(new FileSystemRepository(new File("."))));
System.out.println("Loading Apache ServiceMix from file: " + file);
context = new FileSystemXmlApplicationContext(file, processors);
}
SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");
container.onShutDown(new Runnable() {
public void run() {
if (context instanceof DisposableBean) {
try {
((DisposableBean) context).destroy();
} catch (Exception e) {