class DefaultMetadataHeaders extends AbstractSet<MetadataHeader> implements MetadataHeaders {

    static DefaultMetadataHeaders parseMetadataHeaders(final CharSequence metadataHeadersCharSequence) {
        checkNotNull(metadataHeadersCharSequence, "metadataHeadersCharSequence");
        final DefaultMetadataHeaders result;
        if (0 < metadataHeadersCharSequence.length()) {
            result = parseJsonArray(JsonArray.of(metadataHeadersCharSequence.toString()));
        } else {
            result = newInstance();
        }
        return result;
    }

    private  DefaultMetadataHeaders(final SortedSet<MetadataHeader> treeSet);

}