title: Clone rep:policy on AEM
body: <p>I am currently working on with a solution that would be able to clone/copy/backup my existing rep:policy. 'Cause when we do some jobs it accidentally removed. I am trying to apply this kind of fix, but am failing to. It says it is an invalid path.</p>
  
  <blockquote>
    <p>javax.jcr.security.AccessControlException: OakAccessControl0006: Isolated policy node. Parent is not of type [rep:AccessControllable]</p>
  </blockquote>
  
  <pre><code>        final Workspace ws = session.getWorkspace();
             ws.copy("/etc/commerce/products/abccompany/TvPackChannelMap/rep:policy","/tmp/nxt/TvPackChannelMap/rep:policy");
  </code></pre>
  
  <p>Are there other ways that I can be able to take the rep:policy thru code?</p>