no 
this fails because getOption() returned not only type of NginxOptionsInterface.
can be Apache2OptionsInterface or other type. How can I get headers for specific webserver?