System.out.println("*** TracingInterceptor intercepting " + ctx.getMethod().getName());
long start = System.currentTimeMillis();
try
{
return ctx.proceed();
}
catch(Exception e)
{
throw e;
}
finally
{
long time = System.currentTimeMillis() - start;
String method = ctx.getTarget().getClass().getName() + "." + ctx.getMethod().getName() + "()";
System.out.println("*** TracingInterceptor invocation of " + method + " took " + time + "ms");
}