private HostAndPort createHostAndPort(string peerHostAndPortStr)
 {
     if (peerHostAndPortStr != null)
     {
         HostAndPort hostAndPort = HostAndPort.createHostAndPort(peerHostAndPortStr.ToLower());
         if (hostAndPort == null)
         {
             throw new ArgumentException("Cannot extract host and port from [" + peerHostAndPortStr + "] since the format is invalid");
         }
         return(hostAndPort);
     }
     throw new ArgumentNullException("Peer host and port cannot be null!");
 }