public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
containerContext = new SpringContainerContext(applicationContext);
}
private UMOManager createMuleManager() throws Exception {
UMOManager muleManager = MuleManager.getInstance();
muleManager.setContainerContext(containerContext);
// TODO For mule 1.1.1+, we want to create the model with appropriate types and
// other attributes
UMOModel model = new MuleModel();
muleManager.setModel(model);
MuleXmlConfigurationBuilder builder = new MultiModelMuleXmlConfigurationBuilder();
String configFilenames = getConfigFilenames();
builder.configure(configFilenames);