code: URI buildUri(String relativePath)
      {    
          URI uri = null;
          
          try
          {    
              uri = new URI(buildUrl(relativePath));   
          }
          catch (URISyntaxException e)
          {           
              logger.severe("Problem constructing URI: "+e.getClass().getName()+e.getMessage());
          }
  
          return uri;
      }
docs: Build the URI from the protocol://hostname:port + uriPrefix + relativePath.
  @param relativePath The path of the resource (should always start with a "/")
  @return The URI to call