}
private void displayVersions(JCRSessionWrapper editSession, JCRNodeWrapper subPageEditNode,
JCRSessionWrapper liveSession) throws RepositoryException {
// Display versions
VersionManager versionManager;
VersionHistory versionHistory;
versionManager = editSession.getWorkspace().getVersionManager();
logger.info("Versions of " + subPageEditNode.getPath() + " in edit ws :");
try {
logger.info("Base version in edit ws is : " + versionManager.getBaseVersion(
subPageEditNode.getPath()).getName());
logger.info("Base version in live ws is : " + liveSession.getWorkspace().getVersionManager().getBaseVersion(
subPageEditNode.getPath()).getName());
} catch (RepositoryException e) {
logger.debug(e.getMessage(), e);
}
try {
versionHistory = versionManager.getVersionHistory(subPageEditNode.getPath());
VersionIterator allVersions = versionHistory.getAllVersions();
while (allVersions.hasNext()) {
Version version = allVersions.nextVersion();
StringBuilder builder = new StringBuilder();