final Method listenerMethod = getListenerMethod(listener, event);
final Class<?>[] parameterTypes = listenerMethod.getParameterTypes();
if (parameterTypes.length != 1 || !parameterTypes[0].equals(event)) {
throw new IncompatibleListenerMethodException(listener, listenerMethod,
event);
}
Log.log(String.format("Registering %s.%s() to %s", listener.getName(),
listenerMethod.getName(), event.getName()));