private URI processLocalFiles(URI uri){
  String uriStr=uri.toString();
  if (uriStr.startsWith("file:")) {
    uriStr="file:" + System.getProperty("user.dir") + "/"+ uriStr.substring(5);
    URL url;
    try {
      url=new URL(uriStr);
      return url.toURI();
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
  return uri;
}

private URI processLocalFiles ( URI uri ) { String uriStr = uri . toString ( ) ; if ( uriStr . startsWith ( "file:" ) ) { uriStr = "file:" + System . getProperty ( "user.dir" ) + "/" + uriStr . substring ( 5 ) ; URL url ; try { url = new URL ( uriStr ) ; return url . toURI ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } return uri ; }
convert local paths into absolute paths for links based on the local file system .
