[server][AMQPConnectionInfo] Use StringUtils::hasPrefix

We should use existing feature if the feature is exactly same. We should
not create the same feature multiple times.