code: public CmsContainerPageBean transformContainerpageBean(CmsObject cms, CmsContainerPageBean input, String rootPath) {
  
          CmsTemplateMapperConfiguration config = getConfiguration(cms);
          if ((config == null) || !config.isEnabledForPath(rootPath)) {
              return input;
          }
          List<CmsContainerBean> newContainers = new ArrayList<>();
          for (CmsContainerBean container : input.getContainers().values()) {
              List<CmsContainerElementBean> elements = container.getElements();
              List<CmsContainerElementBean> newElements = new ArrayList<>();
              for (CmsContainerElementBean element : elements) {
                  CmsContainerElementBean newElement = transformContainerElement(cms, config, element);
                  if (newElement != null) {
                      newElements.add(newElement);
                  }
              }
              CmsContainerBean newContainer = new CmsContainerBean(
                  container.getName(),
                  container.getType(),
                  container.getParentInstanceId(),
                  container.isRootContainer(),
                  newElements);
              newContainers.add(newContainer);
          }
          CmsContainerPageBean result = new CmsContainerPageBean(newContainers);
          return result;
      }
docs: Transforms a container page bean.<p>
  
  @param cms the current CMS context
  @param input the bean to be transformed
  @param rootPath the root path of the page
  
  @return the transformed bean