There was a compile error - getHostString is not a public method.