optMap.put(ManagementRulesConfig.EVENT_LEVEL_KEY, logLevel);
//TODO Bug in AMX -- Classcast Exception on util.Properties because the optMap is defined
// as <String, String> in ConfigFactory though the create code expects Properties
//optMap.put(ManagementRulesConfig.EVENT_PROPERTIES_KEY, getProperties(eventType, ruleTypes));
ManagementRulesConfig mgRulesConfig = getManagementRulesConfig(mgmtRule);
ManagementRuleConfig ruleConfig = mgRulesConfig.createManagementRuleConfig(ruleName,
eventType, null, optMap);
setEventConfigProperties(ruleConfig, eventType, ruleTypes);
String action = (String)ruleTypes.get("action");
if((action != null) && (! action.equals(""))){
ruleConfig.createActionConfig(action);