protected EventException createEventException(short code,
String key,
Object[] args) {
try {
AbstractDocument doc = (AbstractDocument) node.getOwnerDocument();
return new EventException(code, doc.formatMessage(key, args));
} catch (Exception e) {
return new EventException(code, key);
}
}