- //EntityJcrUtils.getOrAddFormFolder(adminSession.getRootNode(), EntityNames.FORM_BASE);
- return adminSession.hasPendingChanges();
+ boolean modified = false;
+ Node rootNode = adminSession.getRootNode();
+ if (!rootNode.hasNode(EntityNames.TERM_BASE)) {
+ rootNode.addNode(EntityNames.TERM_BASE, EntityType.typologies.get());
+ modified = true;
+ }
+ if (modified)
+ adminSession.save();
+ return modified;