Added support to access the ModelContext, that contains the current execution state, from the model implementation.