+ " Make sure you specify a valid DataType from the Dictionary.", clazz, method));
}
final boolean mandatory = actionParameter.mandatory();
final String displayLabel = actionParameter.displayLabel();
final String constraintName = StringUtils.stripToNull(actionParameter.constraintName());
final ParameterDefinition parameterDefinition = new ParameterDefinitionImpl(name,
dataType.getName(), mandatory, displayLabel, multivalued, constraintName);
parameterDefinitions.add(parameterDefinition);
final String parameterName = parameterDefinition.getName();
if (mapping.hasParameter(parameterName) == false) {
mapping.addParameterMapping(new ParameterMapping(parameterDefinition, index, clazz));
} else {
throw new RuntimeException(String.format("Duplicate parameter '%s'", parameterName));
}