Map<Object, Object> opts = new HashMap<Object, Object>();
opts.put("partition", true);
Document document = new Document(documentRuby, rubyRuntime);
return DocumentHeader.createDocumentHeader((Title) document.doctitle(opts), documentRuby.title(),
documentRuby.getAttributes());
}
private StructuredDocument toDocument(DocumentRuby documentRuby, Ruby rubyRuntime, int maxDeepLevel) {