derives either WriteUrlValue or WriteUrlParams, depending on the configuration.
WriteUrlValue
WriteUrlParams