Add support for spring contexts