} else if (ex instanceof LockException) {
return new LockException(ex.getMessage());
} else if (ex instanceof LoginException) {
return new LoginException(ex.getMessage());
} else if (ex instanceof MergeException) {
return new MergeException(ex.getMessage());
} 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) {