Implemented visitor patttern on contexts