code: protected void loadAgent(Object pVm, OptionsAndArgs pOpts,String ... pAdditionalOpts) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
          Class clazz = pVm.getClass();
          Method method = clazz.getMethod("loadAgent",String.class, String.class);
          String args = pOpts.toAgentArg();
          if (pAdditionalOpts.length > 0) {
              args = args.length() != 0 ? args + "," + pAdditionalOpts[0] : pAdditionalOpts[0];
          }
          method.invoke(pVm, pOpts.getJarFilePath(),args.length() > 0 ? args : null);
      }
docs: Execute {@link com.sun.tools.attach.VirtualMachine#loadAgent(String, String)} via reflection
  
  @param pVm the VirtualMachine object, typeless
  @param pOpts options from where to extract the agent path and options
  @param pAdditionalOpts optional additional options to be appended to the agent options. Must be a CSV string.