if (parameterMapping.isMandatory() && value == null) {
/*
* We throw RuleServiceException just as ParameterizedItemAbstractBase does when it encounters a missing
* value for a mandatory property.
*/
throw new RuleServiceException(String.format("Parameter '%s' is mandatory, but no value was given.",
parameterMapping.getName()));
}
/* Single values for a multi-valued property are wrapped in an ArrayList automatically. */
if (parameterMapping.isMultivalued() && (value instanceof Collection) == false) {
value = new ArrayList<Serializable>(Arrays.asList(value));