@Override public ActionForward insertBONote( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { KualiDocumentFormBase kualiDocumentFormBase = (KualiDocumentFormBase) form; Note newNote = kualiDocumentFormBase.getNewNote(); NoteExtendedAttribute extendedAttribute = (NoteExtendedAttribute) newNote.getExtension(); ActionForward forward = super.insertBONote(mapping, form, request, response); if (newNote != kualiDocumentFormBase.getNewNote()) { Note addedNote = kualiDocumentFormBase .getDocument() .getNotes() .get(kualiDocumentFormBase.getDocument().getNotes().size() - 1); extendedAttribute.setNoteIdentifier(addedNote.getNoteIdentifier()); addedNote.setExtension(extendedAttribute); SpringContext.getBean(BusinessObjectService.class).save(extendedAttribute); addedNote.refreshReferenceObject("extension"); } return forward; }