Most others I know get the request object from the operation that is passed in, and that has a "getFormatOptions()" method. See:

 https://github.com/geoserver/geoserver/blob/master/src/wfs/src/main/java/org/geoserver/wfs/xml/GML3OutputFormat.java#L113

For an example.