Sometimes it might be useful to transport information available in the preprocessor phase to the postprocessor, e.g. input parameter values. In order to do this, the pre- and postprocessor must share the same context. This is achieved by simply putting pre- and postprocessor in the same class context. To do this create a class containing two operations and assign the pre- and postprocessor to them. Then containment tree of the <<InterceptorModel>> might look like:

Figure: Giving pre- and postproccessor a common context

The class InterceptorContext gives the pre- and postprocessor a common context. That is, each member variable of this class can be accessed in the pre- and postprocessor by using self. For instance, self.someInfo can be set in the preprocessor and then later be used in the postprocessor. For example, see the activity diagram above.