code: private ProfilingWrapper wrap(Base object) {
      ProfilingWrapper res = new ProfilingWrapper(context, resource, object);
      res.cache = cache;
      res.engine = engine;
      return res;
    }
docs: This is a convenient called for
  @param object
  @return