if (infoSiteEnrolmentEvaluation.getInfoTeacher().getTeacherNumber() != null) {  submitMarksForm.set("teacherNumber", infoSiteEnrolmentEvaluation.getInfoTeacher() .getTeacherNumber().toString());
InfoTeacher infoTeacher = infoSiteEnrolmentEvaluation.getInfoTeacher(); if (infoTeacher != null && infoTeacher.getTeacherNumber() != null) {  submitMarksForm.set("teacherNumber", infoTeacher.getTeacherNumber().toString());
    private void setForm(ActionForm form, InfoSiteEnrolmentEvaluation infoSiteEnrolmentEvaluation) {        DynaValidatorForm submitMarksForm = (DynaValidatorForm) form;        if (infoSiteEnrolmentEvaluation.getInfoTeacher().getTeacherNumber() != null) {            //		fill in teacher number in case it exists            submitMarksForm.set("teacherNumber", infoSiteEnrolmentEvaluation.getInfoTeacher()                    .getTeacherNumber().toString());        }        if (infoSiteEnrolmentEvaluation.getLastEvaluationDate() != null) {            Calendar calendar = Calendar.getInstance();            calendar.clear();            calendar.setLenient(false);            calendar.setTime(infoSiteEnrolmentEvaluation.getLastEvaluationDate());            submitMarksForm.set("day", String.valueOf(calendar.get(Calendar.DAY_OF_MONTH)));            submitMarksForm.set("month", String.valueOf(calendar.get(Calendar.MONTH) + 1));            submitMarksForm.set("year", String.valueOf(calendar.get(Calendar.YEAR)));        }    }