try {
Method setMethod = getMethod("set" + eventName); // the setter to store the event object
o = createEventClass(className);
setMethod.invoke(this, new Object[] {o});
} catch (Exception e) {
throw new JSUnknownEventException("the event " + eventName +
" is not known (class " + className +
" is missing)",e);
}
eventObject = o;