code: public static boolean isModelGroupResource(CmsResource resource) {
  
          return CmsResourceTypeXmlContainerPage.MODEL_GROUP_TYPE_NAME.equals(
              OpenCms.getResourceManager().getResourceType(resource).getTypeName());
      }
docs: Returns if the given resource is a model group resource.<p>
  
  @param resource the resource
  
  @return <code>true</code> if the given resource is a model group resource