public CdsPerformanceAppraisalSlotComments toEscapedModel() { if (isEscapedModel()) { return (CdsPerformanceAppraisalSlotComments) this; } else { CdsPerformanceAppraisalSlotComments model = new CdsPerformanceAppraisalSlotCommentsImpl(); model.setNew(isNew()); model.setEscapedModel(true); model.setCdsPerformanceAppraisalSlotCommentsId(getCdsPerformanceAppraisalSlotCommentsId()); model.setPaId(getPaId()); model.setRootId(getRootId()); model.setPeriodId(getPeriodId()); model.setUserId(getUserId()); model.setSlotId(getSlotId()); model.setCommentBy(getCommentBy()); model.setCommentAt(getCommentAt()); model.setCommentContent(HtmlUtil.escape(getCommentContent())); model = (CdsPerformanceAppraisalSlotComments) Proxy.newProxyInstance( CdsPerformanceAppraisalSlotComments.class.getClassLoader(), new Class[] {CdsPerformanceAppraisalSlotComments.class}, new ReadOnlyBeanHandler(model)); return model; } }