// entry = frame.labelMaker.applyRule(entry, panel.database) ;
LabelPatternUtil.makeLabel(prefs.getKeyPattern(), panel.database, entry);
// Store undo information:
panel.undoManager.addEdit(new UndoableKeyChange(panel.database, entry.getId(),
(String) oldValue, entry.getField(BibtexFields.KEY_FIELD)));
// here we update the field
String bibtexKeyData = entry.getField(BibtexFields.KEY_FIELD);