code: public CmsDynamicFunctionBean parseFunctionBean(CmsObject cms, CmsResource res) throws CmsException {
  
          CmsFile file = cms.readFile(res);
          CmsXmlContent xmlContent = CmsXmlContentFactory.unmarshal(cms, file);
          return parseFunctionBean(cms, xmlContent);
      }
docs: Parses a dynamic function bean given a resource.<p>
  
  @param cms the current CMS context
  @param res the resource from which to read the dynamic function
  
  @return the dynamic function bean created from the resource
  
  @throws CmsException if something goes wrong