Note note = notesService.getNote(noteId); //security check if user owns the note
if (note == null || !note.getUser().equals(getContext().getUser()))
return new ErrorResolution(403);
note.setSizeAndPosition(new SizeAndPosition());
try {
notesService.saveNote(note);
} catch (Exception e) {
log.error(e.getMessage());
}