@RequestMapping(value = "/submission/{id}/{hashcode}", method = RequestMethod.GET)
protected void downloadSubmissionFile(@PathVariable Long id,
@PathVariable Integer hashcode,
HttpServletResponse response)
throws Exception {
User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
Submission submission = requestManager.getSubmissionById(id);
if (submission.userCanRead(user)) {
lookupAndRetrieveFile(Submission.class, "SUB"+id, hashcode, response);
}
else {