private static Method getLoadAgentMethod ( Class < ? > vmClass ) throws SecurityException , NoSuchMethodException { return vmClass . getMethod ( "loadAgent" , new Class [ ] { String . class } ) ; }
Finds loadAgent method in VirtualMachine .