OWSContext: take into account the context obj

The ```toContext``` method currently does not make use of its input argument.