buildDocument

Builds a Document with the given builder.