code: protected StreamSource resolveRepositoryURI(String path)
              throws TransformerException {
  
          StreamSource resolvedSource = null;
  
          try {
              if (path != null) {
                  URL url = new URL(path);
                  InputStream in = url.openStream();
                  if (in != null) {
                      resolvedSource = new StreamSource(in);
                  }
              } else {
                  throw new TransformerException("Resource does not exist. \""
                          + path + "\" is not accessible.");
              }
          } catch (MalformedURLException mfue) {
              throw new TransformerException("Error accessing resource using servlet context: "
                                           + path,
                                             mfue);
          } catch (IOException ioe) {
              throw new TransformerException("Unable to access resource at: "
                                           + path,
                                           ioe);
          }
          return resolvedSource;
      }
docs: Resolves the "repository" URI.
  
  @param path
  the href to the resource
  @return the resolved Source or null if the resource was not found
  @throws TransformerException
  if no URL can be constructed from the path