I think the origin is actually null on the originator node, and it's only set to an actual address on a remote node. So you can actually replace `isOriginLocal` with `origin == null`.