private String normalizeUrl(String url){
  if (!normalize) {
    return url;
  }
  String normalized=null;
  if (urlNormalizers != null) {
    try {
      normalized=urlNormalizers.normalize(url,URLNormalizers.SCOPE_DEFAULT);
      normalized=normalized.trim();
    }
 catch (    Exception e) {
      LOG.warn("Skipping " + url + ":"+ e);
      normalized=null;
    }
  }
  return normalized;
}

private String normalizeUrl ( String url ) { if ( ! normalize ) { return url ; } String normalized = null ; if ( urlNormalizers != null ) { try { normalized = urlNormalizers . normalize ( url , URLNormalizers . SCOPE_DEFAULT ) ; normalized = normalized . trim ( ) ; } catch ( Exception e ) { LOG . warn ( "Skipping " + url + ":" + e ) ; normalized = null ; } } return normalized ; }
normalizes and trims extra whitespace from the given url .
