.equals(Specialization.MASTER_DEGREE))) {
.equals(Specialization.STUDENT_CURRICULAR_PLAN_MASTER_DEGREE))) {
    protected static String buildPaymentReference(InfoGratuitySituation infoGratuitySituation) {        StringBuilder reference = new StringBuilder();        //year        String year = infoGratuitySituation.getInfoGratuityValues().getInfoExecutionDegree()                .getInfoExecutionYear().getYear();        reference.append(year.substring(2, year.indexOf('/'))); //year was like        // 2003/2004        //student's number        reference.append(addCharToStringUntilMax(ZERO, infoGratuitySituation                .getInfoStudentCurricularPlan().getInfoStudent().getNumber().toString(),                MAX_STUDENT_NUMBER));        //code        if (infoGratuitySituation.getInfoStudentCurricularPlan().getSpecialization() != null                && (infoGratuitySituation.getInfoStudentCurricularPlan().getSpecialization()                        .equals(Specialization.MASTER_DEGREE))) {            reference.append(CODE_MASTERDEGREE);        } else if (infoGratuitySituation.getInfoStudentCurricularPlan().getSpecialization() != null                && (infoGratuitySituation.getInfoStudentCurricularPlan().getSpecialization()                        .equals(Specialization.SPECIALIZATION))) {            reference.append(CODE_SPECIALIZATION);        }        return reference.toString();    }