} else {
for (Parameter param : parameters) {
if (param.getName().equals(paramName)) {
Class<?> paramClass = param.getParameterType();
PropertyAccessor accessor = PropertyAccessorFactory.getPropertyAccessor(paramClass);
Object paramValue = accessor.fromString(paramClass, value);
if (paramName.equalsIgnoreCase("firstResult")) {
q.setFirstResult(Integer.parseInt((String) paramValue));
} else if (paramName.equalsIgnoreCase("maxResult")) {
q.setMaxResults(Integer.parseInt((String) paramValue));
} else {