Java reflection mechanism and dynamic proxy