for (Method handler : handlers) { if (handler.getAnnotation(DefaultHandler.class) != null) { return handler; } }
Method handler = handlers.get(DEFAULT_HANDLER_KEY); if (handler != null) return handler;
    public Method getDefaultHandler(Class<? extends ActionBean> bean) throws StripesServletException {        Collection<Method> handlers = this.eventMappings.get(bean).values();        if (handlers.size() == 1) {            return handlers.iterator().next();        }        else {            for (Method handler : handlers) {                if (handler.getAnnotation(DefaultHandler.class) != null) {                    return handler;                }            }        }        // If we got this far there is no default handler        throw new StripesServletException("No default handler could be found for ActionBean of " +            "type: " + bean.getName());    }