} finally {
IOUtils.closeQuietly(out);
}
}
private String outputNameOf(Report report) {
<BUG>String name = report.getName();
if (automaticExtension && ! name.endsWith(extensionOf(report))) {
name += extensionOf(report);
}
return URIUtil.escapeFileSystemForbiddenCharacters(name);
</BUG>
}

} finally {
IOUtils.closeQuietly(out);
}
}
private String outputNameOf(Report report) {
String name = report.getName();
StringBuilder nameBuilder = new StringBuilder(name);
if (automaticExtension && ! name.endsWith(extensionOf(report))) {
nameBuilder.append(extensionOf(report));
}
return URIUtil.escapeFileSystemForbiddenCharacters(nameBuilder.toString());
}
