private void startProfiling(String startMethod) throws Exception {
    final Class<?> settingsClass = Class.forName("com.yourkit.api.controller.CpuProfilingSettings");
    myControllerClass.getMethod(startMethod, settingsClass).invoke(myController, new Object[]{settingsClass.newInstance()});
  }
private void startProfiling(String startMethod)