noteId = Integer.parseInt(request.getParameter("oid"));
} catch (NumberFormatException e) {
logger.error("Exception: " + e.getMessage(), e);
}
Note currentNote = locateNote(getSession(request), noteId);
if (currentNote != null) {
final File file = currentNote.getFile();
logger.debug("Note : " + file.getName());
logger.debug("Note attachment size : " + file.getFileSize());
logger.debug("Note contentType : " + file.getContentType());
response.setContentType(file.getContentType());