public Object load(URI uri) throws IOException {
  InputStreamReader src=null;
  try {
    src=new FileReader(new File(uri));
    return xstream.fromXML(src);
  }
  finally {
    if (null != src) {
      src.close();
    }
  }
}

public Object load ( URI uri ) throws IOException { InputStreamReader src = null ; try { src = new FileReader ( new File ( uri ) ) ; return xstream . fromXML ( src ) ; } finally { if ( null != src ) { src . close ( ) ; } } }
load an object from the provided uri .
