session = (SessionImpl)repository.login(credentials, WORKSPACE);
list = session.getRootNode().getNode("list2");
session.move(list.getPath() + "/2", list.getPath() + "/5");
list.orderBefore("5", "1");
session.save();
session.logout();
session = (SessionImpl)repository.login(credentials, WORKSPACE);
NodeIterator it = session.getRootNode().getNode("list2").getNodes();
NodeImpl node1 = (NodeImpl)it.nextNode();