code: protected static void removeFromContext(CmsObject cms, CmsPublishedResource pubRes) {
  
          cms.getRequestContext().removeAttribute(getAttributeKey(pubRes.getRootPath()));
      }
docs: Removes the dependency object for a published resource from the OpenCms
  runtime context.<p>
  
  <b>Please note:</b> This must be used with caution since the information
  may be required to generate documents for several configured indexes. It
  must be ensured that this is called only when all indexes have been
  updated.<p>
  
  @param cms the current OpenCms user context
  @param pubRes the published resource info
  
  @see #storeInContext(CmsObject)