class ClusterAddressUtils {

  public static List<InetSocketAddress> getAddresses(String addressesString) {
    if (StringUtils.isEmpty(addressesString)) {
      return null;
    }

    addressesString = addressesString.trim();
    List<String> addressList = Arrays.asList(addressesString.split("\\s*,\\s*"));

    return getAddressesByList(addressList);
  }

}