"beans.41", methodName)); //$NON-NLS-1$
}
// There are more than one method matching the signature
// Find the most specific one to invoke
MethodComparator comparator = new MethodComparator(methodName,
clazzes);
Method chosenOne = matchMethods.get(0);
matchMethods.remove(0);
for (Method method : matchMethods) {
int difference = comparator.compare(chosenOne, method);
if (difference > 0) {
chosenOne = method;
} else if (difference == 0) {
// if 2 methods have same relevance, throw exception
throw new NoSuchMethodException(Messages.getString(