if (paramValue == null) {
paramValue = request.getParameterValues(paramName);
}
if (paramValue == null) {
if (paramRequired) {
throw new MissingServletRequestParameterException(paramName, param.getParameterType().getName());
}
if (param.getParameterType().isPrimitive()) {
throw new IllegalStateException("Optional " + param.getParameterType() + " parameter '" +
paramName + "' is not present but cannot be translated into a null value due to " +
"being declared as a primitive type. Consider declaring it as object wrapper type " +