private HostAddress findClusterHostAddress(UrlParser urlParser){
  List<HostAddress> hostAddresses=urlParser.getHostAddresses();
  Matcher matcher;
  for (  HostAddress hostAddress : hostAddresses) {
    matcher=clusterPattern.matcher(hostAddress.host);
    if (matcher.find()) {
      urlEndStr="." + matcher.group(2);
      return hostAddress;
    }
  }
  return null;
}

private HostAddress findClusterHostAddress ( UrlParser urlParser ) { List < HostAddress > hostAddresses = urlParser . getHostAddresses ( ) ; Matcher matcher ; for ( HostAddress hostAddress : hostAddresses ) { matcher = clusterPattern . matcher ( hostAddress . host ) ; if ( matcher . find ( ) ) { urlEndStr = "." + matcher . group ( 2 ) ; return hostAddress ; } } return null ; }
retrieves the cluster host address from the urlparser instance .
