try {
if (handlerNames != null) {
for (int i = 0; i < handlerNames.size(); i++) {
String handlerName = handlerNames.get(i);
EventHandlerDef handlerDef = this.eventHandlers
.get(handlerName);
if (handlerDef == null) {
throw new ConfigException("Handler : " + handlerName //$NON-NLS-1$
+ " is not configured"); //$NON-NLS-1$
}
// EventHandler handler = (EventHandler)
// getClass().forName(handlerDef.getType())
// .newInstance();
EventHandler handler = (EventHandler) Class.forName(
handlerDef.getType()).newInstance();
result.add(new EventHandlerProxy(handlerName, handler,
handlerDef));
}
}