if(overloads.isEmpty()) {
throw new EvalException("Method " + methodName + " not defined in " + clazz.getName());
}
FunctionBinding binding = new FunctionBinding(overloads);
return binding.invoke(null, context, arguments);
}
public static List<Method> findMethod(Class packageClass, String methodName) {
List<Method> overloads = Lists.newArrayList();
for(Method method : packageClass.getMethods()) {