code: protected CmsFormatterConfiguration getFormattersFromSchema(CmsObject cms, CmsResource res) {
  
          try {
              return OpenCms.getResourceManager().getResourceType(res.getTypeId()).getFormattersForResource(cms, res);
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
              return CmsFormatterConfiguration.EMPTY_CONFIGURATION;
          }
      }
docs: Gets the formatters from the schema.<p>
  
  @param cms the current CMS context
  @param res the resource for which the formatters should be retrieved
  
  @return the formatters from the schema