// package-private, for testing
public static Object convertListToObject(AnnotatedElement target,
Class type, List<String> paramValList) {
Param param = target.getAnnotation(Param.class);
// does this parameter type allow multiple values?
if (!param.multiple()) {
if (paramValList.size() == 1)
return convertStringToObject(target, type, paramValList.get(0));
throw new UnacceptableValueException(
localStrings.getLocalString("TooManyValues",
"Invalid parameter: {0}. This parameter may not have " +