if (!newPrefDir.exists() && Preferences.systemRoot().node("/com").nodeExists("adito")) {
Preferences from = Preferences.systemRoot().node("/com/adito");
log.warn("Migrating preferences");
try {
copyNode(from.node("core"), PREF.node("core"));
from.node("core").removeNode();
copyNode(from.node("plugin"), PREF.node("plugin"));
from.node("plugin").removeNode();
copyNode(from.node("extensions"), PREF.node("extensions"));
from.node("extensions").removeNode();
copyNode(from.node("dbupgrader"), PREF.node("dbupgrader"));