for(final Annotation annotation : parameterAnnotations[i]) {
if(Param.class.equals(annotation.annotationType())) {
namedParameters = true;
final Param param = (Param) annotation;
final String name = param.value().trim();
if(name.length() == 0) {
throw new RuntimeException("Illegal empty parameter value encounterd on parameter " + i
+ " of method '" + method + "' from class '" + method.getDeclaringClass().getName() +"'.");
}
if(parameterPositions == null) {
parameterPositions = new HashMap<String, Integer>();
}
parameterPositions.put(param.value(), i);
break;
}
}