try {
ConfigContext instanceConfigContext = sc.getConfigContext();
Config instanceConfig = ServerBeansFactory.getConfigBean(
instanceConfigContext);
ManagementRules selfManagementRules = instanceConfig.getManagementRules();
if ( selfManagementRules != null ) {
if ( selfManagementRules.isEnabled() ) {
_logger.log(Level.INFO, "smgt.service_enabled");
isServiceEnabled = true;
ManagementRule[] rules = selfManagementRules.getManagementRule();
if (rules != null) {
for (int i = 0; i < rules.length; i++) {
ManagementRule rule = rules[i];
String ruleName = rule.getName();
String ruleDescription = rule.getDescription();