}
private boolean findByAnnotation(final Class<? extends Object> eventCandidate) {
if (Event.class.isAssignableFrom(eventCandidate)) {
final ListenerPair listenerPair = eventCandidate
.getAnnotation(ListenerPair.class);
if (listenerPair != null) {
@SuppressWarnings("unchecked")
final Class<? extends Event> eventClass = (Class<? extends Event>) eventCandidate;
_register(listenerPair.value(), eventClass);
return true;
}
}
return false;