} else if (ex instanceof NamespaceException) {
return new NamespaceException(ex.getMessage());
} else if (ex instanceof NoSuchNodeTypeException) {
return new NoSuchNodeTypeException(ex.getMessage());
} else if (ex instanceof NoSuchWorkspaceException) {
return new NoSuchWorkspaceException(ex.getMessage());
} else if (ex instanceof PathNotFoundException) {
return new PathNotFoundException(ex.getMessage());
} else if (ex instanceof ReferentialIntegrityException) {
return new ReferentialIntegrityException(ex.getMessage());
} else if (ex instanceof UnsupportedRepositoryOperationException) {