reschke commented on code in PR #2371: URL: https://github.com/apache/jackrabbit-oak/pull/2371#discussion_r2189050299
########## oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/xml/ImportHandler.java: ########## @@ -136,8 +140,7 @@ public void endDocument() throws SAXException { public void startPrefixMapping(String prefix, String uri) throws SAXException { try { - new NamespaceHelper(sessionContext.getSession()).registerNamespace( - prefix, uri); + registerNamespace(prefix, uri); Review Comment: Once NamespaceHeler avoids fetching the registry every time, ImportHandler should should get the NamespaceRegistry reference only once. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org