private boolean isModelPage(CmsObject cms, CmsResource containerPage) {

        CmsADEConfigData config = getConfigData(containerPage.getRootPath());
        for (CmsModelPageConfig modelConfig : config.getModelPages()) {
            if (modelConfig.getResource().getStructureId().equals(containerPage.getStructureId())) {
                return true;
            }
        }
        return false;
    }
private boolean isModelPage ( CmsObject cms , CmsResource containerPage ) { CmsADEConfigData config = getConfigData ( containerPage . getRootPath ( ) ) ; for ( CmsModelPageConfig modelConfig : config . getModelPages ( ) ) { if ( modelConfig . getResource ( ) . getStructureId ( ) . equals ( containerPage . getStructureId ( ) ) ) { return true ; } } return false ; }
Checks if a page is a model page.<p>

@param cms the CMS context to use
@param containerPage the page to check

@return true if the resource is a model page