Use getMethod() instead of getDeclaredMethod().

It was a mistake that it was committed using getDeclaredMethod().