SessionContainer session = this.getRequestContainer().getSessionContainer();
SessionContainer permanentSession = session.getPermanentContainer();
IEngUserProfile profile = (IEngUserProfile) permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
IDossierPartsTempDAO dptDAO = DAOFactory.getDossierPartsTempDAO();
dptDAO.setUserProfile(profile);
dptDAO.storeNote(dossierId, pageNum, noteSent.getBytes(), workflowProcessId);
// recover from cms images and notes
String notes = recoverNotes(dossierId, pageNum, workflowProcessId);
Map imageurl = recoverImageUrls(dossierId, pageNum, workflowProcessId);
// put attributes into response
response.setAttribute(DossierConstants.PUBLISHER_NAME, "DossierEditNotesTemplatePart");