Add context class to prevent model classes being evaluated

What does this class do? Is it to be extended? Maybe some doc would help.