public static boolean checkGroupAllowed(String containerType, CmsGroupContainerBean groupContainer) {

        return !Sets.intersection(CmsContainer.splitType(containerType), groupContainer.getTypes()).isEmpty();
    }
public static boolean checkGroupAllowed ( String containerType , CmsGroupContainerBean groupContainer ) { return ! Sets . intersection ( CmsContainer . splitType ( containerType ) , groupContainer . getTypes ( ) ) . isEmpty ( ) ; }
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