*/
public Object invoke(InvocationContext ctx) throws Throwable
{
if (trace) log.trace("Invoked with method call " + ctx.getMethodCall());
MethodCall m = ctx.getMethodCall();
if (!overriddenMethods.contains(m.getMethodId()) || skipMethodCall(ctx))
{
if (trace) log.trace("Not registered for any handlers, or instructed to skip call. Passing up the chain.");
return nextInterceptor(ctx);
}
Object[] args = m.getArgs();
Object result;
switch (m.getMethodId())
{
case MethodDeclarations.putDataEraseMethodLocal_id:
result = handlePutDataEraseMethod(ctx, (GlobalTransaction) args[0], (Fqn) args[1], (Map) args[2], (Boolean) args[3], (Boolean) args[4]);
break;
case MethodDeclarations.putDataMethodLocal_id: