public CmsGroupContainerBean transformGroupContainer(CmsObject cms, CmsGroupContainerBean input, String rootPath) {

        CmsTemplateMapperConfiguration config = getConfiguration(cms);
        if ((config == null) || !config.isEnabledForPath(rootPath)) {
            return input;
        }
        List<CmsContainerElementBean> newElements = new ArrayList<>();
        for (CmsContainerElementBean element : input.getElements()) {
            CmsContainerElementBean newElement = transformContainerElement(cms, config, element);
            if (newElement != null) {
                newElements.add(newElement);
            }
        }
        Set<String> transformedTypes = new HashSet<>();
        Set<String> oldTypes = input.getTypes();
        if (oldTypes == null) {
            oldTypes = new HashSet<>();
        }
        for (String type : oldTypes) {
            String newType = config.getMappedElementGroupType(type);
            if (newType == null) {
                newType = type;
            }
            transformedTypes.add(newType);
        }

        CmsGroupContainerBean result = new CmsGroupContainerBean(
            input.getTitle(),
            input.getDescription(),
            newElements,
            transformedTypes);
        return result;
    }
public CmsGroupContainerBean transformGroupContainer ( CmsObject cms , CmsGroupContainerBean input , String rootPath ) { CmsTemplateMapperConfiguration config = getConfiguration ( cms ) ; if ( ( config == null ) || ! config . isEnabledForPath ( rootPath ) ) { return input ; } List < CmsContainerElementBean > newElements = new ArrayList < > ( ) ; for ( CmsContainerElementBean element : input . getElements ( ) ) { CmsContainerElementBean newElement = transformContainerElement ( cms , config , element ) ; if ( newElement != null ) { newElements . add ( newElement ) ; } } Set < String > transformedTypes = new HashSet < > ( ) ; Set < String > oldTypes = input . getTypes ( ) ; if ( oldTypes == null ) { oldTypes = new HashSet < > ( ) ; } for ( String type : oldTypes ) { String newType = config . getMappedElementGroupType ( type ) ; if ( newType == null ) { newType = type ; } transformedTypes . add ( newType ) ; } CmsGroupContainerBean result = new CmsGroupContainerBean ( input . getTitle ( ) , input . getDescription ( ) , newElements , transformedTypes ) ; return result ; }
Transforms a group container bean.<p>

@param cms the current CMS context
@param input the input bean to be transformed
@param rootPath the root path of the container page

@return the transformed bean