public void callValidator(final AQuery $, final Ajax ajax) throws VolleyError { Map<Annotation, java.lang.reflect.Method> method = ReflectUtils.getMethodsByAnnotation(Handler.class, getClass()); for (Map.Entry<Annotation, java.lang.reflect.Method> entry : method.entrySet()) { try { entry .getValue() .invoke( this, ReflectUtils.fillParamsByAnnotations( entry.getValue(), new ReflectUtils.ParamInjector() { @Override public Object onInject( Class paramType, List<? extends Annotation> annotations, int position) { try { return scanAnnotation($, paramType, annotations.get(0), ajax); } catch (Exception e) { $.log.i(e); return null; } } })); } catch (InvocationTargetException e) { if (e.getTargetException() instanceof VolleyError) { throw ((VolleyError) e.getTargetException()); } $.log.i(e.getTargetException()); } catch (Exception e) { $.log.i(e); } } }