code: public static boolean checkGroupAllowed(String containerType, CmsGroupContainerBean groupContainer) {
  
          return !Sets.intersection(CmsContainer.splitType(containerType), groupContainer.getTypes()).isEmpty();
      }
docs: Checks if a group element is allowed in a container with a given type.<p>
  
  @param containerType the container type spec (comma separated)
  @param groupContainer the group
  
  @return true if the group is allowed in the container