return ResultHandling.valueOf(s);
} catch (IllegalArgumentException e) {
throw new BadRequestException("result-handling", e);
}
}
<BUG>private static String makeResultFilename(String originalFilename, String mimeType) {
String filteredFilename;</BUG>
int p = originalFilename.indexOf('.', 1);
if (p > 0) {
filteredFilename = originalFilename.substring(0, p) + ".filtered" + originalFilename.substring(p);

return ResultHandling.valueOf(s);
} catch (IllegalArgumentException e) {
throw new BadRequestException("result-handling", e);
}
}
private String makeResultFilename(String originalFilename, String mimeType) {
String filteredFilename;
int p = originalFilename.indexOf('.', 1);
if (p > 0) {
filteredFilename = originalFilename.substring(0, p) + ".filtered" + originalFilename.substring(p);
