@@ -0,0 +1,1544 @@
+package com.equalize.xpi.af.modules.util;%0A%0Aimport com.sap.aii.af.lib.mp.module.ModuleContext;%0Aimport com.sap.aii.af.lib.mp.module.ModuleException;%0Aimport com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;%0A%0Apublic class ParameterHelper %7B%0A%0A%09private final ModuleContext mc;%0A%09private final AuditLogHelper audit;%0A%09%0A%09public ParameterHelper (ModuleContext mc, AuditLogHelper audit) %7B%0A%09%09this.mc = mc;%0A%09%09this.audit = audit;%0A%09%7D%0A%09%0A%09public String getMandatoryParameter(String paramName) throws ModuleException %7B%0A%09%09String paramValue = this.mc.getContextData(paramName);%0A%09%09if (paramValue == null) %7B%0A%09%09%09throw new ModuleException(%22Mandatory parameter '%22 + paramName + %22' is missing%22);%0A%09%09%7D%09%0A%09%09return paramValue;%0A%09%7D%0A%09%0A%09public String getParameter(String paramName, String defaultValue) %7B%0A%09%09String paramValue = this.mc.getContextData(paramName);%0A%09%09if (paramValue == null && !defaultValue.equals(%22%22)) %7B%0A%09%09%09paramValue = defaultValue;%0A%09%09%09this.audit.addLog(AuditLogStatus.SUCCESS, %22Defaulting '%22 + paramName + %22' = %22 + paramValue);%09%09%09%09%0A%09%09%7D%09%0A%09%09return paramValue;%0A%09%7D%0A%0A%09public String getConditionallyMandatoryParameter(String paramName, String dependentParamName, String dependentParamValue) throws ModuleException %7B%0A%09%09String paramValue = this.mc.getContextData(paramName);%0A%09%09if (paramValue == null) %7B%0A%09%09%09throw new ModuleException(%22Parameter '%22 + paramName + %22' required when '%22 + dependentParamName + %22' = %22 + dependentParamValue);%0A%09%09%7D%09%0A%09%09return paramValue;%0A%09%7D%0A%09%0A%09public String getParameter(String paramName) %7B%0A%09%09return getParameter(paramName, %22%22);%0A%09%7D%0A%09%0A%7D%0A

Create ParameterHelper.java