Why not use session.getNode() ?