}
}
else {
// Calls external implementation
final CustomValue customValue = customValues.get(parameter.getName());
if (customValue == null) {
throw new IllegalArgumentException(
"Parameter was not defined '" + parameter.getName() + "'");
}
value = customValue.getValue();
if (value == null) {
throw new IllegalArgumentException(
"Parameter '" + parameter.getName() + "' was defined as a custom value but did not provide a valid value");
}