code: public CmsDecorationDefintion getDecorationDefinition(CmsXmlContent configuration, int i) {
  
          CmsDecorationDefintion decDef = new CmsDecorationDefintion();
          String name = configuration.getValue(XPATH_DECORATION + "[" + i + "]/" + XPATH_NAME, m_configurationLocale).getStringValue(
              m_cms);
          String markfirst = configuration.getValue(
              XPATH_DECORATION + "[" + i + "]/" + XPATH_MARKFIRST,
              m_configurationLocale).getStringValue(m_cms);
          String pretext = configuration.getValue(
              XPATH_DECORATION + "[" + i + "]/" + XPATH_PRETEXT,
              m_configurationLocale).getStringValue(m_cms);
          String posttext = configuration.getValue(
              XPATH_DECORATION + "[" + i + "]/" + XPATH_POSTTEXT,
              m_configurationLocale).getStringValue(m_cms);
          String pretextfirst = configuration.getValue(
              XPATH_DECORATION + "[" + i + "]/" + XPATH_PRETEXTFIRST,
              m_configurationLocale).getStringValue(m_cms);
          String posttextfirst = configuration.getValue(
              XPATH_DECORATION + "[" + i + "]/" + XPATH_POSTTEXTFIRST,
              m_configurationLocale).getStringValue(m_cms);
          String filenname = configuration.getValue(
              XPATH_DECORATION + "[" + i + "]/" + XPATH_FILENAME,
              m_configurationLocale).getStringValue(m_cms);
  
          decDef.setName(name);
          decDef.setMarkFirst(markfirst.equals("true"));
          decDef.setPreText(pretext);
          decDef.setPostText(posttext);
          decDef.setPreTextFirst(pretextfirst);
          decDef.setPostTextFirst(posttextfirst);
          decDef.setConfigurationFile(filenname);
  
          return decDef;
      }
docs: Builds a CmsDecorationDefintion from a given configuration file.<p>
  
  @param configuration the configuration file
  @param i the number of the decoration definition to create
  @return CmsDecorationDefintion created form configuration file