RegistryEntry entry = registry.get(listenerInterface);
if(entry==null){
entry = new RegistryEntry();
Method[] interfaceMethods = listenerInterface.getDeclaredMethods();
for(Method method:interfaceMethods){
EventMethod annotation = method.getAnnotation(EventMethod.class);
if(annotation!=null){
String eventName = annotation.eventName();
entry.putEventMethod(eventName, method);
}
else if(entry.getEventMethod()==null){
entry.putEventMethod(method);
}