class URIUtil {

  public static String getSndDomainFromUrl(String url) {
    if (url == null) {
      return null;
    }
    try {
      final String domain = URI.create(url).getHost();
      if (domain != null) {
        return getSndDomain(domain);
      }
    } catch (IllegalArgumentException e) {
    }
    logger.debug("The url={} isn't valid, skipping it", url);
    return null;
  }

}