static public String canonicalizeWrite(String location) {
    try {
      URI refURI = URI.create(location);
      if (refURI.isAbsolute())
        return location;
    } catch (Exception e) {
      //return "file:" + location;
    }
    return "file:" + location;
  }
static public String canonicalizeWrite(String location) {
    try {
      URI refURI = URI.create(location);
      if (refURI.isAbsolute())
        return location;
    } catch (Exception e) {
      
    }
    return "file:" + location;
  }
static public String canonicalizeWrite ( String location ) { try { URI refURI = URI . create ( location ) ; if ( refURI . isAbsolute ( ) ) return location ; } catch ( Exception e ) { //return "file:" + location;
 } return "file:" + location ; }
/ try to figure out if we need to add file: to the location when writing
/ try to figure out if we need to add file : to the location when writing