Map<String, String> paramMetaData = new HashMap<String, String>();
JParameter[] params = method.getParameters();
for (JParameter param : params) {
RangeField rangeField = param.getAnnotation(RangeField.class);
if (rangeField != null) {
String fieldName = rangeField.value();
JClassType enclosingType = method.getEnclosingType();
if (!fieldExists(enclosingType, fieldName)) {
logger.log(TreeLogger.ERROR, "The RangeField annotation on "
+ enclosingType + " at " + method + " specifies a field, "
+ fieldName + ", which could not be found. Perhaps it is "