Change SampleDocumentGenerator not to return null