}
@Override
public void processHeader(final ParserContext context) {
final Asciidoctor asciidoctor = getEngine();
DocumentHeader header = asciidoctor.readDocumentHeader(context.getFile());
Map<String, Object> contents = context.getContents();
if (header.getDocumentTitle() != null) {
contents.put("title", header.getDocumentTitle().getMain());
}
Map<String, Object> attributes = header.getAttributes();
for (String key : attributes.keySet()) {
if (key.startsWith("jbake-")) {
Object val = attributes.get(key);
if (val!=null) {
String pKey = key.substring(6);