private synchronized void buildAppContext(MessageContext synCtx) {
log.debug("Creating Spring ApplicationContext from property key : " + configKey);
GenericApplicationContext appContext = new GenericApplicationContext();
XmlBeanDefinitionReader xbdr = new XmlBeanDefinitionReader(appContext);
xbdr.setValidating(false);
xbdr.loadBeanDefinitions(new InputStreamResource(
Util.getStreamSource(
synCtx.getConfiguration().getProperty(configKey)).getInputStream()));
appContext.refresh();
this.appContext = appContext;
}