} else if (tag.getTagName().equals("note")) {
blockType = BlockType.NOTE;
} else {
throw new IllegalStateException(tag.getTagName());
}
Attributes attributes = new Attributes();
if (title != null && title.length() > 0) {
attributes.setTitle(title);
}
builder.beginBlock(blockType,attributes);
}