code: private boolean hasSettings(CmsObject cms, CmsResource resource) throws CmsException {
  
          if (!CmsResourceTypeXmlContent.isXmlContent(resource)) {
              return false;
          }
  
          CmsFormatterConfiguration formatters = getConfigData().getFormatters(m_cms, resource);
          boolean result = (formatters.getAllFormatters().size() > 1)
              || !CmsXmlContentPropertyHelper.getPropertyInfo(m_cms, null, resource).isEmpty();
          if (!result && (formatters.getAllFormatters().size() == 1)) {
              result = (formatters.getAllFormatters().get(0).getSettings() != null)
                  && (formatters.getAllFormatters().get(0).getSettings().size() > 0);
          }
          return result;
      }
docs: Helper method for checking whether there are properties defined for a given content element.<p>
  
  @param cms the CmsObject to use for VFS operations
  @param resource the resource for which it should be checked whether it has properties
  
  @return true if the resource has properties defined
  
  @throws CmsException if something goes wrong