@Override
protected PhdThesisProcess executeActivity(PhdThesisProcess process, User userView, Object object) {
PhdProgramDocumentUploadBean documentBean = (PhdProgramDocumentUploadBean) object;
PhdProgramProcessDocument document = process.getLatestDocumentVersionFor(documentBean.getType());
document.replaceDocument(documentBean.getType(), documentBean.getRemarks(), documentBean.getFileContent(),
documentBean.getFilename(), AccessControl.getPerson());
return process;
}
}