}
@RequestMapping(value = "/save/{archive}/document")
public String saveDocument(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception {
common(confBean, userBean, archive, modelMap, request, response);
SaveDocumentCommand saveDocumentCommand = new SaveDocumentCommand(request.getParameterMap(), modelMap);
saveDocumentCommand.execute();
if ((MyRequest.getParameter("go", request.getParameterMap()).toLowerCase()).indexOf("saveandclose") != -1) {
return editingPage(userBean, confBean, archive, modelMap, request, response);
} else {
return viewTab(userBean, confBean, archive, modelMap, MyRequest.getParameter("goServlet", request.getParameterMap()), request, response);
}