Creating a directive for OWSContext