If you supply the getMethod
method with only the method name, then it will assume that you are looking for a no-argument method. The getMethod
method has a varargs argument for the classes of the parameters of the method you're looking for.
Use
Handshake.class.getMethod("CheckRevision", Session.class);