if (candidateMasterDegreeProofVersion.getCurrentState().getState() == State.ACTIVE) {
if (candidateMasterDegreeProofVersion.getCurrentState().getState().equals(State.ACTIVE)) {
    public MasterDegreeProofVersion getActiveMasterDegreeProofVersion() {        MasterDegreeProofVersion activeMasterDegreeProofVersion = null;        for (MasterDegreeProofVersion candidateMasterDegreeProofVersion : this                .getMasterDegreeProofVersions()) {            if (candidateMasterDegreeProofVersion.getCurrentState().getState() == State.ACTIVE) {                activeMasterDegreeProofVersion = candidateMasterDegreeProofVersion;                break;            }        }        return activeMasterDegreeProofVersion;    }