Added getDocumentBySD method