catch(IOException e) {
throw new IllegalStateException("Error opening output.", e);
}
try {
Database db = ResultUtil.findDatabase(baseresult);
writer.output(db, result, output);
}
catch(IOException e) {
throw new IllegalStateException("Input/Output error while writing result.", e);
}
catch(UnableToComplyException e) {