Source:
protected String createAndRouteDocumentForACHAccountUpdate( Person payee, PayeeACHAccountExtractDetail achDetail, PayeeACHAccount oldAccount, PayeeACHAccount newAccount) { try { MaintenanceDocument paatDocument = (MaintenanceDocument) documentService.getNewDocument(CUPdpConstants.PAYEE_ACH_ACCOUNT_EXTRACT_MAINT_DOC_TYPE); paatDocument.getDocumentHeader().setDocumentDescription(getDocumentDescription( payee, PayeeIdTypeCodes.ENTITY.equals(newAccount.getPayeeIdentifierTypeCode()), false)); paatDocument.getOldMaintainableObject().setDataObject(oldAccount); paatDocument.getNewMaintainableObject().setDataObject(newAccount); paatDocument.getNewMaintainableObject().setMaintenanceAction(KFSConstants.MAINTENANCE_EDIT_ACTION); addNote(paatDocument, parameterService.getParameterValueAsString( PayeeACHAccountExtractStep.class, CUPdpParameterConstants.GENERATED_PAYEE_ACH_ACCOUNT_DOC_NOTE_TEXT)); paatDocument = (MaintenanceDocument) documentService.routeDocument( paatDocument, CUPdpConstants.PAYEE_ACH_ACCOUNT_EXTRACT_ROUTE_ANNOTATION, null); sendPayeeACHAccountAddOrUpdateEmail((PayeeACHAccount) paatDocument.getNewMaintainableObject().getDataObject(), payee, getEmailSubjectForUpdatedPayeeACHAccount(), getUnresolvedEmailBodyForUpdatedPayeeACHAccount()); } catch (Exception e) { LOG.error("createAndRouteDocumentForACHAccountUpdate STE " + e.getStackTrace() + e.toString()); LOG.error(getFailRequestMessage(e)); return "createAndRouteDocumentForACHAccountUpdate: " + achDetail.getLogData() + " STE was generated. " + getFailRequestMessage(e); } return StringUtils.EMPTY; }

Target:
protected String createAndRouteDocumentForACHAccountUpdate( Person payee, PayeeACHAccountExtractDetail achDetail, PayeeACHAccount oldAccount, PayeeACHAccount newAccount) { try { MaintenanceDocument paatDocument = (MaintenanceDocument) documentService.getNewDocument(CUPdpConstants.PAYEE_ACH_ACCOUNT_EXTRACT_MAINT_DOC_TYPE); paatDocument.getDocumentHeader().setDocumentDescription(getDocumentDescription( payee, PayeeIdTypeCodes.ENTITY.equals(newAccount.getPayeeIdentifierTypeCode()), false)); paatDocument.getOldMaintainableObject().setDataObject(oldAccount); paatDocument.getNewMaintainableObject().setDataObject(newAccount); paatDocument.getNewMaintainableObject().setMaintenanceAction(KFSConstants.MAINTENANCE_EDIT_ACTION); addNote(paatDocument, parameterService.getParameterValueAsString( PayeeACHAccountExtractStep.class, CUPdpParameterConstants.GENERATED_PAYEE_ACH_ACCOUNT_DOC_NOTE_TEXT)); paatDocument = (MaintenanceDocument) documentService.routeDocument( paatDocument, CUPdpConstants.PAYEE_ACH_ACCOUNT_EXTRACT_ROUTE_ANNOTATION, null); sendPayeeACHAccountAddOrUpdateEmail((PayeeACHAccount) paatDocument.getNewMaintainableObject().getDataObject(), payee, getEmailSubjectForUpdatedPayeeACHAccount(), getUnresolvedEmailBodyForUpdatedPayeeACHAccount()); LOG.info("createAndRouteDocumentForACHAccountUpdate: Updated existing ACH Account of type " + newAccount.getPayeeIdentifierTypeCode() + " for payee " + payee.getPrincipalName()); } catch (Exception e) { LOG.error("createAndRouteDocumentForACHAccountUpdate: " + getFailRequestMessage(e), e); return "createAndRouteDocumentForACHAccountUpdate: " + achDetail.getLogData() + " STE was generated. " + getFailRequestMessage(e); } return StringUtils.EMPTY; }