code: private static void hardTouch(CmsObject cms, CmsResource resource) throws CmsException {
  
          CmsFile file = cms.readFile(resource);
          file.setContents(file.getContents());
          cms.writeFile(file);
      }
docs: Rewrites the content of the given file.<p>
  
  @param resource the resource to rewrite the content for
  
  @throws CmsException if something goes wrong