code: public static String normalizeURI( String uri )
      {
          //
          // If it's a relative URI, normalize it.  Note that we don't want to create a URI
          // (very expensive) unless we think we'll need to.  "./" catches "../" and "./".
          //
          if ( uri.indexOf( "./" ) != -1 )
          {
              try
              {
                  uri = new URI( uri ).normalize().toString();
              }
              catch ( URISyntaxException e )
              {
                  logger.error( "Could not parse relative URI " + uri );
              }
          }
          
          return uri;
      }
docs: Resolve "." and ".." in a URI.
  @exclude