code: public Object getCachedObject(CmsObject cms, String rootPath) {
  
          String key = getCacheKeyForCurrentProject(cms, rootPath);
          return OpenCms.getMemoryMonitor().getCachedVfsObject(key);
      }
docs: Return an object from the cache.<p>
  
  @param cms the current users OpenCms context
  @param rootPath the rootPath of the VFS resource to get the object for
  @return object form cache or null