try {
// Publish the OSGi service
Properties props = new Properties();
props.put(CarbonConstants.AXIS2_CONFIG_SERVICE, AxisObserver.class.getName());
ctxt.getBundleContext().registerService(AxisObserver.class.getName(),
new STSDeploymentInterceptor(), props);
} catch (Throwable e) {
log.error("Error occurred while updating carbon STS service", e);
}
}