protected CmsXmlContent addContentValues(CmsFile file, Map<String, String> contentValues) throws CmsException {

        CmsXmlContent content = unmarshalXmlContent(file);
        Locale locale = m_cms.getRequestContext().getLocale();

        addContentValues(content, locale, contentValues);
        return content;
    }
protected CmsXmlContent addContentValues ( CmsFile file , Map < String , String > contentValues ) throws CmsException { CmsXmlContent content = unmarshalXmlContent ( file ) ; Locale locale = m_cms . getRequestContext ( ) . getLocale ( ) ; addContentValues ( content , locale , contentValues ) ; return content ; }
Adds the given values to the content document.<p>

@param file the content file
@param contentValues the values to add

@return the content document

@throws CmsException if writing the XML fails