try {
superuser.getNamespacePrefix("http://ns.example.org/test-namespace2");
// Ignore test case, node type and namespace already registered
} catch (NamespaceException e1) {
// Namespace testns2 not yet registered
JackrabbitNodeTypeManager ntm = (JackrabbitNodeTypeManager)
superuser.getWorkspace().getNodeTypeManager();
ntm.registerNodeTypes(
TestAll.class.getResourceAsStream(TEST_NS_XML_NODETYPES),
JackrabbitNodeTypeManager.TEXT_XML);
try {
superuser.getNamespacePrefix("http://ns.example.org/test-namespace2");
} catch (NamespaceException e2) {