code: public Object loadVfsObject(CmsObject cms, String rootPath, Transformer function) {
  
          Object result = getCachedObject(cms, rootPath);
          if (result == null) {
              result = function.transform(rootPath);
              putCachedObject(cms, rootPath, result);
          }
          return result;
      }
docs: Uses a transformer for loading an object from a path if it has not already been cached, and then caches it.<p>
  
  @param cms the CMS context
  @param rootPath the root path from which the object should be loaded
  @param function the function which should load the object from VFS if it isn't already cached
  
  @return the loaded object