code: public static CmsDocumentDependency load(CmsObject cms, CmsResource res) {
  
          CmsDocumentDependency result = readFromContext(cms, res.getRootPath());
          if (result == null) {
              result = new CmsDocumentDependency(res);
              result.readDependencies(cms);
          }
          return result;
      }
docs: Loads or creates a dependency object for the given parameters.<p>
  
  @param cms the current OpenCms user context
  @param res the VFS resource to get the dependency object for
  
  @return a dependency object for the given parameters