Java instrumentation for easy method routing