public void activateVersioning(List<String> pathes, JCRSessionWrapper currentUserSession) {
for (String path : pathes) {
try {
JCRNodeWrapper node = currentUserSession.getNode(path);
if (!node.isVersioned()) {
node.versionFile();
currentUserSession.save();
}
} catch (Throwable e) {
logger.error(e.getMessage(), e);
}