throws IllegalAccessException, InvocationTargetException {
final Object[] params = getParams(context);
final Object o = invoker.invoke(method, resource, params);
if (o != null) {
Response r = new ResponseBuilderImpl().
entityWithType(o, t).status(200).build();
context.getResponse().setResponse(r);
}
}