Home home = in.readHome();
return home;
} catch (InterruptedIOException ex) {
throw new InterruptedRecorderException("Read " + homeUrl + " interrupted");
} catch (IOException ex) {
throw new RecorderException("Can't read home from " + homeUrl, ex);
} catch (ClassNotFoundException ex) {
throw new RecorderException("Missing classes to read home from " + homeUrl, ex);
} finally {
try {
if (in != null) {
in.close();
}
} catch (IOException ex) {
throw new RecorderException("Can't close stream", ex);
}
}
}