@ffrank when would the parent resouce's container be nil? I would be concerned about other places in the transaction code that assume a parent resource always has a container.