title: Implementing OpenNTF DOmino API in my XPages, what should I change in code?
body: <p>Regulations breakthrough! Due to major issues with recycling in XPages I got green light to install and use OpenNTF's Domino API now to leave a lot of recycling of Notes objects to ODA.</p>
  <p>But what should I consider to change in code?</p>
  <p>Besides creation of database object:</p>
  <pre><code>Database db = Utils.getSession().getDatabase(&quot;&quot;, &quot;file.nsf&quot;);
  
  Session sess = Factory.getSession(SessionType.CURRENT);
  Database db = sess.getDatabase(&quot;&quot;, &quot;file.nsf&quot;, true);
  </code></pre>
  <p>I noticed I saw code examples that stated SessionType.NATIVE. What is the difference?</p>
  <p>I notice an additional parameter in sess.getDatabase(&quot;&quot;, &quot;file.nsf&quot;, true). What is that for?</p>
  <p>I also wonder what to do with all the exception handling that I have in my current code. Can I keep this or should I remove this?</p>
  <p>What about logging for exceptions, do they appear automagically in openlog or not? Or how should I setup use of openlog?</p>
  <p>Nowadays I use a different OpenNTF addon for use of OpenLog <a href="https://www.openntf.org/main.nsf/project.xsp?r=project/XPages%20OpenLog%20Logger" rel="nofollow noreferrer">https://www.openntf.org/main.nsf/project.xsp?r=project/XPages%20OpenLog%20Logger</a> . Can I remove this then?</p>
  <p>I am looking for an example application for code but I have not found any yet. Perhaps you know a good source?</p>
  <p>Thank you in advance for your guidance!</p>