try { Object returns = method.invoke(ctx, request.getPath(), request, params, DependencyProvider.from()); pusher.push(returns); } catch (InvocationTargetException | IllegalAccessException | InstantiationException e) { log.warn(String.format("Crap! Unable to invoke method %s", method), e);
try { Object returns = method.invoke(ctx, request.getPath(), request, params, DependencyProvider.from()); pusher.push(returns); } catch (InvocationTargetException | IllegalAccessException | InstantiationException e) { log.warn(String.format("Crap! Unable to invoke method %s", method), e);
try { Object response = method.invoke(ctx, request.getUri(), method, params, provider); pusher.push(response); } catch (WebApplicationException wae) { throw wae; //just re-throw for it to be handled in exceptionCaught handler