title: Using Java API to read Lotus Notes documents
body: <p>I am using the Lotus Notes 6.5.1 Java API to read an .nsf file. Every document in the .nsf file has multiple document history. While traversing through the documents in the .nsf file using the Lotus Notes Java API I am getting all the document versions as separate documents. </p>
  
  <p>How do I ensure only the latest version of each document is retrieved by Lotus Notes? Is there a way to uniquely identify a document and all its version history as its children?</p>