class TLD {

    public static ByteSequence estimateRootPointerFromId(ByteSequence id) {
        if (id.length() > 21) {
            for (int i = 21; i < id.length(); ++i) {
                if (id.byteAt(i) == '.') {
                    return id.subSequence(0, i);
                }
            }
            return id.subSequence(0, id.length());
        }
        return parseParentPointerFromId(id);
    }

    private  TLD();

}