Invocation copy = marshallOrPass(invocation, Invocation.class);
copy.getMetaData().addMetaData(IS_LOCAL, IS_LOCAL, Boolean.TRUE, PayloadKey.AS_IS);
try
{
// Invoke upon the container
SessionContainer sc = (SessionContainer) container;
InvocationResponse response = sc.dynamicInvoke(copy);
// it could really have been a copy
invocation.setResponseContextInfo(response.getContextInfo());
return marshallOrPass(response.getResponse(), Object.class);
}
// TODO: Either Throwable (as it used to be) or Exception (which is better)