renamed getDocumentContent to createDocument