try {
Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();
Node folderNode = session.getNodeByUUID(folder.getId());
JcrObservationManager jom = JcrObservationManager.getInstance();
jom.addEventListener(el, Event.NODE_ADDED, folderNode.getPath(), true, null, null, false);
} catch (Exception e) {
throw new IndexationException("Folder with version id : " + folder.getId() + " could not be indexed", e);
}
}