RenderUtils.invalidateViewState(); request.setAttribute("publicationBean", bookPartBean);   if (bookPartBean.getIdInternal() != null) return mapping.findForward("PreparedToEdit"); return mapping.findForward("PreparedToCreate");
if (bookPartBean.getIdInternal() != null) return mapping.findForward("PreparedToEdit"); return mapping.findForward("PreparedToCreate");
    public ActionForward changeBookPartTypePostBack(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) {        if (RenderUtils.getViewState() == null)            return listPublications(mapping, form, request, response);        BookPartBean bookPartBean = (BookPartBean) RenderUtils.getViewState().getMetaObject()                .getObject();        if (bookPartBean.getBookPartType() == null)            bookPartBean.setBookPartType(BookPartType.Inbook);        if (bookPartBean.getBookPartType().equals(BookPartType.Inbook))            bookPartBean.setActiveSchema("result.publication.create.BookPart.Inbook");        else            bookPartBean.setActiveSchema("result.publication.create.BookPart.Incollection");        RenderUtils.invalidateViewState();        request.setAttribute("publicationBean", bookPartBean);        // check if editing or creating publication        if (bookPartBean.getIdInternal() != null)            return mapping.findForward("PreparedToEdit");        return mapping.findForward("PreparedToCreate");    }