The instanceof is just defensive in this case. The ProxyServiceConfiguration instance is created by this same class in the constructor and added to the collection of service configurations. I can add a log message in the ProxyServiceConfiguration saying which port has been selected (the soap version used is a consequence of the selected port).