Node child = it.nextNode();
node.addChild(new JcrNode(repository, workspace, child.getName(), child.getPath(), child.getPrimaryNodeType().getName()));
}
return node;
} catch (AccessDeniedException | SecurityException ade) {
throw new RemoteException(RemoteException.SECURITY_ERROR, ade.getMessage());
} catch (RepositoryException e) {
throw new RemoteException(e.getMessage());
}
}