`container` should be readOnly, I don't think this will ever be hit.