@Override public void close() { root = null; try { session.close(); } catch (ResourceException e) { throw new RuntimeException(e); } }