code: public AttributeTable fromPkiMessage(final PkiMessage<?> message) {
          Hashtable<ASN1ObjectIdentifier, Attribute> table = new Hashtable<ASN1ObjectIdentifier, Attribute>();
  
          List<Attribute> attributes = getMessageAttributes(message);
          if (message instanceof CertRep) {
              attributes.addAll(getResponseAttributes((CertRep) message));
          }
  
          for (Attribute attribute : attributes) {
              table.put(attribute.getAttrType(), attribute);
          }
  
          return new AttributeTable(table);
      }
docs: Creates a new {@code AttributeTable} for the given {@code PkiMessage}.
  
  @param message
  the message to parse.
  @return the attributes from the message.