title: jackrabbit: UnsupportedRepositoryOperationException when working with NodeTypeManager
body: <p>I'm working with Apache Jackrabbit using JCR. I want to create and register new Node Type according to <a href="https://wiki.apache.org/jackrabbit/ExamplesPage" rel="nofollow noreferrer">Example Page</a>. My problem is that i got <code>UnsupportedRepositoryOperationException</code> exception when calling <code>createNodeTypeTemplate</code> method.. Here is my JCR sample </p>
  
  <pre><code>Repository repository = new URLRemoteRepository("http://localhost:8080/rmi");
  Session session = repository.login(new SimpleCredentials("admin","admin".toCharArray()));
  NodeTypeManager nodeTypeManager = session.getWorkspace().getNodeTypeManager();
  NodeTypeTemplate nodeType = nodeTypeManager.createNodeTypeTemplate();
  </code></pre>
  
  <p>Based on documentation the exception will throw if implementation does not support node type registration. But Jackrabbit example page shows that it support the registering new node types.So where is the problem?</p>