@Override
        public void fromString(String string) throws TextParseException {
            values.clear();
            if (string == null || string.isEmpty()) {
                throw new TextParseException("Non-empty list must be specified for mandatory");
            }
            for (String str : splitStringWithEscapedCommas(string)) {
                int key = parameters.getValue(str);
                if (key == MANDATORY) {
                    throw new TextParseException("Key mandatory must not appear in its own list");
                }
                if (values.contains(key)) {
                    throw new TextParseException("Duplicate key " + str + " not allowed in mandatory list");
                }
                values.add(key);
            }
        }
Implements common functionality for SVCB and HTTPS records
src/main/java/core/org/xbill/DNS/SVCBBase.java