public void updateValueDueToEmployee() { Employee selectedEmployee = getInstance().getEmployee(); if (selectedEmployee != null) { info("updating values due to employee modification #0", selectedEmployee); OutstandingImprovement instance = getInstance(); Employment employment = instance.getEmployee().getCurrentEmployment(); instance.setSourcePYSDE(employment.getSchool().getPysde()); instance.setSourceSchool(employment.getSchool()); } else { warn("updateValueDueToEmployee called, but no employee is selected."); } }