return method.invoke(iface, args);
} catch (InvocationTargetException e) {
throw e.getTargetException();
}
}
BlurServerContext context = getServerContext(controller);
if (context == null) {
try {
return method.invoke(iface, args);
} catch (InvocationTargetException e) {
throw e.getTargetException();
}
}
String rootTraceId = context.getTraceRootId();
if (rootTraceId != null) {
Trace.setupTrace(rootTraceId, context.getTraceRequestId());
}
try {
return method.invoke(iface, args);
} catch (InvocationTargetException e) {
throw e.getTargetException();
} finally {
Trace.tearDownTrace();
context.resetTraceIds();
}
}
private BlurServerContext getServerContext(boolean controller) {
if (controller) {