1. A computer-implemented method for accessing an application, the method comprising: at an agent, receiving a reference to an object of the application from instrumentation of the application, and identifying a class loader of the application from the reference; and based on the reference, performing a process which allows the agent to invoke one or more methods of the application object, the process comprising: at the agent, identifying the class loader of the application from the reference; creating a helper class loader and setting a parent class loader of the helper class loader as the class loader of the application, responsive to the identifying; using the helper class loader to obtain and load byte code of a helper class; using the loaded byte code of the helper class to define a helper object; and using the helper object, invoking the one or more methods of the application object.