code: public Object invoke(MethodInvocation mi) throws Exception {
          Method method = mi.getMethod();
          return simulatorAdapter.service(method.getDeclaringClass().getCanonicalName(), method.getName(), mi.getArguments(), rootPath, useRootRelativePath);
      }
docs: Returns some simulation response if found.
  
  @param mi the MethodInvocation
  @return some simulation response
  @throws Exception if something goes wrong