code: public static boolean isModelGroup(CmsResource resource) {
  
          return OpenCms.getResourceManager().getResourceType(resource).getTypeName().equals(MODEL_GROUP_TYPE_NAME);
      }
docs: Checks whether the given resource is a model group.<p>
  
  @param resource the resource
  
  @return <code>true</code> in case the resource is a model group