title: Getting Cannot change locked branch exception in Guidewire PC
body: <p>I am trying to make a readonly entity to writable by using</p>
  
  <pre><code>Transaction.runwithNewBundle(\bundle -&gt; {
     entity = bundle.add(entity)
  })
  </code></pre>
  
  <p>but I am getting </p>
  
  <pre><code>java.lang.IllegalArgumentException: You cannot change a locked branch.
  </code></pre>
  
  <p>Please help me out with this.</p>