private String doPrimitive(ASN1Primitive primitive) throws IOException {
        if (primitive == null || primitive instanceof ASN1Null) {
            return "";
        } else if (primitive instanceof ASN1Sequence) {
            return doCollection(((ASN1Sequence) primitive).toArray());
        } else if (primitive instanceof ASN1Set) {
            return doCollection(((ASN1Set) primitive).toArray());
        } else if (primitive instanceof DERTaggedObject) {
            final DERTaggedObject tagged = ((DERTaggedObject) primitive);
            return "<table><tr><td>" + /* tagged.getTagNo() + */ "</td><td>" + doPrimitive(tagged.getBaseUniversal(false, tagged.getTagNo())) + "</td></tr></table>";
        } else {
            return "<table><tr><td colspan='2'>" + asString(primitive) + "</td></tr></table>";
        }
    }
Creates a table that represents an ASN.1 encoded DER value.

This tag creates a HTML table, that consists of one or two columns and an unspecified number of rows. Each cell
can contain a nested table (of similar format).
xmppserver/src/main/java/org/jivesoftware/admin/ASN1DERTag.java