/*     */ public String copy() {
   /* 177 */ String historyId = getRequest().getParameter("historyId");
   /* 178 */ DocHistory docHistory = (DocHistory) this.docHistoryService.get(new Long(historyId));
   /* 179 */ DocHistory newHistory = new DocHistory();
   /*     */
   /* 181 */ this.archivesDoc = docHistory.getArchivesDoc();
   /*     */
   /* 183 */ newHistory.setDocName(docHistory.getDocName());
   /* 184 */ newHistory.setFileAttach(docHistory.getFileAttach());
   /*     */
   /* 186 */ newHistory.setMender(ContextUtil.getCurrentUser().getFullname());
   /* 187 */ newHistory.setPath(docHistory.getPath());
   /* 188 */ newHistory.setUpdatetime(new Date());
   /* 189 */ newHistory.setVersion(
       Integer.valueOf(this.archivesDoc.getCurVersion().intValue() + 1));
   /* 190 */ newHistory.setArchivesDoc(this.archivesDoc);
   /* 191 */ this.docHistoryService.save(newHistory);
   /*     */
   /* 193 */ this.archivesDoc.setCurVersion(newHistory.getVersion());
   /* 194 */ this.archivesDoc.setDocPath(newHistory.getPath());
   /* 195 */ this.archivesDoc.setFileAttach(newHistory.getFileAttach());
   /*     */
   /* 197 */ this.archivesDocService.save(this.archivesDoc);
   /*     */
   /* 199 */ StringBuffer buff = new StringBuffer("{success:true,data:");
   /* 200 */ JSONSerializer json = new JSONSerializer();
   /* 201 */ buff.append(
       json.exclude(new String[] {"class", "docHistorys"}).serialize(this.archivesDoc));
   /* 202 */ buff.append("}");
   /*     */
   /* 204 */ setJsonString(buff.toString());
   /* 205 */ return "success";
   /*     */ }