code: protected Set<CmsSearchField> getXSDMappings(CmsObject cms, CmsResource resource) {
  
          try {
              if (CmsResourceTypeXmlContent.isXmlContent(resource)) {
                  I_CmsXmlContentHandler handler = CmsXmlContentDefinition.getContentHandlerForResource(cms, resource);
                  if ((handler != null) && !handler.getSearchFields().isEmpty()) {
                      return handler.getSearchFields();
                  }
              }
          } catch (CmsException e) {
              LOG.error(e.getMessage(), e);
          }
          return null;
      }
docs: Returns the search field mappings declared within the XSD.<p>
  
  @param cms the CmsObject
  @param resource the resource
  
  @return the fields to map