try {
file = File.createTempFile("river-web-", ".tmp");
StreamUtil.drain(responseData.getResponseBody(), file);
processData(scrapingRule, file, responseData, resultData);
} catch (final IOException e) {
throw new RobotSystemException("Failed to create a temp file.", e);
} finally {
if (file != null && !file.delete()) {
logger.warn("Failed to delete " + file.getAbsolutePath());
}
}