Add method to retrieve a confinementContext