Add instance() to the container contract.
Merge pull request #6345 from franzliedke/container-instance

[5.0] Add instance() to the container contract