code: public List<CmsModelPageEntry> getModelGroups() {
  
          List<CmsModelPageEntry> result = new ArrayList<CmsModelPageEntry>();
          CmsResourceTypeConfig config = m_adeConfig.getResourceType(
              CmsResourceTypeXmlContainerPage.MODEL_GROUP_TYPE_NAME);
          if ((config != null) && !config.isDisabled()) {
              String modelGroupFolderPath = config.getFolderPath(m_cms, m_adeConfig.getBasePath());
              if (m_cms.existsResource(modelGroupFolderPath)) {
                  try {
                      Locale wpLocale = OpenCms.getWorkplaceManager().getWorkplaceLocale(m_cms);
                      List<CmsResource> modelResources = m_cms.readResources(
                          modelGroupFolderPath,
                          CmsResourceFilter.ONLY_VISIBLE_NO_DELETED.addRequireType(
                              OpenCms.getResourceManager().getResourceType(
                                  CmsResourceTypeXmlContainerPage.MODEL_GROUP_TYPE_NAME)),
                          false);
                      for (CmsResource model : modelResources) {
                          CmsModelPageEntry entry = createModelPageEntry(model, false, false, wpLocale);
                          if (entry != null) {
                              result.add(entry);
                          }
                      }
                  } catch (CmsException e) {
                      LOG.error(e.getLocalizedMessage(), e);
                  }
              }
          }
          return result;
      }
docs: Returns the local model group pages.<p>
  
  @return the model group pages