Added getDocumentType