Statistic statist = Statistic.getExists(stat.name);
return new DbPreferences(null, "", statist, log, null, em);
}
protected void putSpi(String key, String value) {
Preference p = null;
for (Preference current : getPreferences()) {
if (key.equals(current.getKey())) {
p = current;
p.setValue(persist, value);
break;
}
}
if (p == null) {
p = new Preference(persist, statistic, log, prefix, key);
p.setValue(persist, value);
preferences.add(p);
persist.persist(p);
} else {
persist.merge(p);
}