protected void internalChangeState(AcademicServiceRequestBean academicServiceRequestBean) {
super.internalChangeState(academicServiceRequestBean);
if (academicServiceRequestBean.isToConclude()) {
PhdIndividualProgramProcess process = getPhdIndividualProgramProcess();
PhdProgramProcessState lastActiveState = process.getLastActiveState();
String remarks =
String.format(
BundleUtil
.getString(Bundle.PHD,
"message.net.sourceforge.fenixedu.domain.phd.serviceRequests.PhdStudentReingressionRequest.conclusion.remark"),
getServiceRequestNumberYear());
process.createState(lastActiveState.getType(), AccessControl.getPerson(), remarks);
if (process.getRegistration() != null && !process.getRegistration().isActive()) {
RegistrationState registrationLastActiveState = process.getRegistration().getLastActiveState();
RegistrationState.createRegistrationState(process.getRegistration(), AccessControl.getPerson(), new DateTime(),