Map<String,String> parameterMap = new HashMap<String, String>();
for (String key: alertParameters.getSimpleProperties().keySet())
parameterMap.put(key,alertParameters.getSimple(key).getStringValue());
ScriptContext sc = engine.getContext();
sc.setAttribute("alertPreferences",preferencesMap,ScriptContext.ENGINE_SCOPE);
sc.setAttribute("alertParameters",parameterMap,ScriptContext.ENGINE_SCOPE);
engine.eval(br);
AlertManagerLocal alertManager = LookupUtil.getAlertManager();
Object[] args = new Object[3];