title: XPages : Is there any way to force save NotesXspDocument?
body: <p>I'd like to force saving data of NotesXSPDocument to prevent creating conflict document in case users are opening the same document.
  For NotesDocument, there is a option in NotesDocument.save method but not in NotesXSPDocument.save.</p>
  
  <p>For instance, when clicking 'save' button, I think the next codes meets my requirement. However I have lots of custom control and fields, it is not a smart solution... Is there any other good solution?</p>
  
  <pre><code>    var doc:NotesDocument = document1.getDocument();
      doc.replaceItemValue("Field1", data1);
      doc.replaceItemValue("Field2", data2);
      doc.replaceItemValue("Field3", data3);
      .....
      doc.save(true);
  </code></pre>