Java Relfection - Method matching example.