}
private void bindEventHandler(ComponentMapper mapper, Object controller,
Method method, EventHandler eventListener) {
String componentId = eventListener.value();
Component component = mapper.findById(componentId);
Class<?> eventClass = (method.getParameterTypes().length > 0 ? method
.getParameterTypes()[0] : null);
if (eventClass != null && component != null) {
Method addListenerMethod = findAddListenerMethod(
component.getClass(), eventClass);
if (addListenerMethod != null) {
try {
Object listener = createListenerProxy(
addListenerMethod.getParameterTypes()[0],
eventClass, method, controller);