protected void activate(ComponentContext context) {
try {
bundleContext = context.getBundleContext();
if (CommonUtil.getStratosConfig() == null) {
StratosConfiguration stratosConfig = CommonUtil.loadStratosConfiguration();
CommonUtil.setStratosConfig(stratosConfig);
}
// Loading the EULA
if (CommonUtil.getEula() == null) {
String eula = CommonUtil.loadTermsOfUsage();
CommonUtil.setEula(eula);
}
//packageInfos = new PackageInfoHolder();
//context.getBundleContext().registerService(
// PackageInfoHolder.class.getName(), packageInfos, null);
//Register manager configuration OSGI service
try {
StratosConfiguration stratosConfiguration = CommonUtil.loadStratosConfiguration();
bundleContext.registerService(StratosConfiguration.class.getName(), stratosConfiguration, null);
if (log.isDebugEnabled()) {
log.debug("******* Cloud Common Service bundle is activated ******* ");
}
} catch (Exception ex) {