byte[] fileAsBytes = getInputStream(request, userLogin);
InputStream inputStream = new ByteArrayInputStream(fileAsBytes);
if (inputStream == null) {
ContestManager contestManager = sessionUtil.getContestManager();
Contest contest = contestManager.getContest(request);
if (contest == null) {
response.sendRedirect("");
return;
}
User user = contestManager.getUser(contest.getId(), userLogin);
user.getGeneralState().setOutputNow("File not found");
request.getSession().setAttribute("tab", "General");
response.sendRedirect("main");
return;
}