public AsciidocProcessor(AsciidocParserHandler handler, List<AttributeEntry> attributes) {
    this.handler = handler;
    if (handler == null) throw new IllegalArgumentException("Handler must not be null");
    this.ef = new ElementFactory();

    this.attributes = AttributeDefaults.Instance.getAttributes();
    for (AttributeEntry att : attributes) {
      this.attributes.put(att.getName(), att);
    }
  }