}
springIntentLocations.add("classpath:" + mapFile);
}
try {
OsgiBundleXmlApplicationContext ctx =
new OsgiBundleXmlApplicationContext(springIntentLocations.toArray(new String [] {}));
ctx.setPublishContextAsService(false);
ctx.setBundleContext(bundleContext);
ctx.refresh();
LOG.fine("application context: " + ctx);
IntentMap im = (IntentMap)ctx.getBean("intentMap");
LOG.fine("retrieved intent map: " + im);
return im;
} catch (Throwable t) {
LOG.log(Level.WARNING, "Intent map load failed: ", t);
return null;