BundleContext bundleContext) throws StatusMonitorException {
String configFile =
CarbonUtils.getCarbonConfigDirPath() + File.separator +
StatusMonitorConstants.STATUS_MONITOR_CONFIG;
try {
statusMonitorConfiguration = new StatusMonitorConfigurationBuilder(configFile);
} catch (Exception e) {
String msg = "The Status Monitor Configuration file not found";
log.error(msg, e);
throw new StatusMonitorException (msg, e);
}