code: protected CmsXmlContent saveInContentObject(
          CmsObject cms,
          CmsXmlContent content,
          Locale locale,
          String name,
          CmsContainerConfiguration configuration) throws CmsException {
  
          if (content == null) {
              content = CmsXmlContentFactory.createDocument(
                  cms,
                  locale,
                  (CmsResourceTypeXmlContent)OpenCms.getResourceManager().getResourceType(
                      CmsResourceTypeXmlContainerPage.INHERIT_CONTAINER_CONFIG_TYPE_NAME));
          }
  
          if (!content.hasLocale(locale)) {
              content.addLocale(cms, locale);
          }
          Element parentElement = content.getLocaleNode(locale);
          serializeSingleConfiguration(cms, name, configuration, parentElement);
          return content;
      }
docs: Saves a single container configuration in an XML content object, but doesn't write it to the VFS.<p>
  
  If the XML content passed as a parameter is null, a new XML content object will be created
  
  @param cms the current CMS context
  @param content the XML content
  @param locale the locale in which the configuration should be written
  @param name the name of the configuration
  @param configuration the configuration to write
  
  @return the modified or new XML content
  
  @throws CmsException if something goes wrong