private boolean initialized = false;
protected void activate(ComponentContext context) throws Exception {
try {
initialized = true;
SynapseEnvironmentService synEnvService = synapseEnvironmentServices.get(
MultitenantConstants.SUPER_TENANT_ID);
if (synEnvService != null) {
context.getBundleContext().registerService(TaskManagementService.class.getName(),
new StartupAdminService(), null);
context.getBundleContext().registerService(
JobMetaDataProviderService.class.getName(),
new StartupJobMetaDataProviderService(), null);
registerDeployer(synEnvService.getConfigurationContext().getAxisConfiguration(),
synEnvService.getSynapseEnvironment());
} else {
log.error("Couldn't initialize the StartupManager, " +
"SynapseEnvironment service and/or TaskDescriptionRepositoryService not found");
}
} catch (Throwable t) {