protected void removeExistingEntry(CmsObject cms, CmsXmlContent content, Locale locale, String name) {

        if (!content.hasLocale(locale)) {
            return;
        }
        String entriesXpath = N_CONFIGURATION;
        List<I_CmsXmlContentValue> values = content.getValues(entriesXpath, locale);
        int valueIndex = 0;
        for (I_CmsXmlContentValue value : values) {
            String valueXpath = value.getPath();
            I_CmsXmlContentValue nameValue = content.getValue(CmsXmlUtils.concatXpath(valueXpath, N_NAME), locale);
            String currentName = nameValue.getStringValue(cms);
            if (currentName.equals(name)) {
                content.removeValue(valueXpath, locale, valueIndex);
                break;
            }
            valueIndex += 1;
        }
    }
protected void removeExistingEntry ( CmsObject cms , CmsXmlContent content , Locale locale , String name ) { if ( ! content . hasLocale ( locale ) ) { return ; } String entriesXpath = N_CONFIGURATION ; List < I_CmsXmlContentValue > values = content . getValues ( entriesXpath , locale ) ; int valueIndex = 0 ; for ( I_CmsXmlContentValue value : values ) { String valueXpath = value . getPath ( ) ; I_CmsXmlContentValue nameValue = content . getValue ( CmsXmlUtils . concatXpath ( valueXpath , N_NAME ) , locale ) ; String currentName = nameValue . getStringValue ( cms ) ; if ( currentName . equals ( name ) ) { content . removeValue ( valueXpath , locale , valueIndex ) ; break ; } valueIndex += 1 ; } }
Removes an existing inheritance container entry with a given name from the configuration file.<p>

This does nothing if no such entry actually exists.<p>

@param cms the current CMS context
@param content the XML content
@param locale the locale from which to remove the entry
@param name the name of the entry