code: public CmsXmlContentErrorHandler validateContent(Map<String, String> contentValues) throws CmsUgcException {
  
          checkNotFinished();
          try {
              CmsFile file = m_cms.readFile(m_editResource);
              CmsXmlContent content = addContentValues(file, contentValues);
              return content.validate(m_cms);
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
              throw new CmsUgcException(e, CmsUgcConstants.ErrorCode.errMisc, e.getLocalizedMessage());
          }
      }
docs: Validates the content values.<p>
  
  @param contentValues the content values to validate
  
  @return the validation handler
  
  @throws CmsUgcException if reading the content file fails