}
public NonTxInvocationContext createRemoteInvocationContext(Address origin) {
InvocationContext existing = icTl.get();
if (existing != null && existing instanceof NonTxInvocationContext) {
NonTxInvocationContext context = (NonTxInvocationContext) existing;
context.setOriginLocal(false);
context.setOrigin(origin);
return context;
}
NonTxInvocationContext remoteNonTxContext = new NonTxInvocationContext();
remoteNonTxContext.setOriginLocal(false);
remoteNonTxContext.setOrigin(origin);
icTl.set(remoteNonTxContext);
return remoteNonTxContext;
}