Changed method setDocumentParametersByType to void