parent.addNode("child4", "jj:content");
session.save();
versionManager.checkpoint(parent.getPath());
parent = session.getNode("/parent");
parent.orderBefore("child4", "child3");
parent.orderBefore("child3", "child2");
parent.orderBefore("child2", "child1");
session.save();
Version version = versionManager.getBaseVersion(parent.getPath());