import javax.jcr.Node;
import javax.jcr.RepositoryException;
+import org.argeo.api.app.EntityType;
import org.argeo.api.cms.CmsLog;
-import org.argeo.app.api.EntityType;
import org.argeo.jcr.JcrUtils;
import org.argeo.maintenance.AbstractMaintenanceService;
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);
} catch (ItemExistsException e) {
log.warn("Terms " + name + " exists with another UUID, removing it...");
- termsBase.getNode(name).remove();
+ if (termsBase.hasNode(name))
+ termsBase.getNode(name).remove();
try (InputStream in = termsUrl.openStream()) {
termsBase.getSession().importXML(termsBase.getPath(), in,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);