/** * Look up a public method matching this method identifier using reflection. * * @param clazz the class to search * @return the method * @throws NoSuchMethodException if no such method exists * @throws ClassNotFoundException if one of the classes referenced by this identifier are not found in {@code clazz}'s * class loader */ public Method getPublicMethod(final Class<?> clazz) throws NoSuchMethodException, ClassNotFoundException { return clazz.getMethod(name, typesOf(parameterTypes, clazz.getClassLoader())); }