if (masterDegreeProofVersion.getCurrentState().equals(State.ACTIVE)) {
if (masterDegreeProofVersion.getCurrentState().getState().equals(State.ACTIVE)) {
    public MasterDegreeProofVersion readActiveMasterDegreeProofVersion() {        MasterDegreeThesis masterDegreeThesis = this.getMasterDegreeThesis();        if (masterDegreeThesis != null) {            for (MasterDegreeProofVersion masterDegreeProofVersion : masterDegreeThesis                    .getMasterDegreeProofVersions()) {                if (masterDegreeProofVersion.getCurrentState().equals(State.ACTIVE)) {                    return masterDegreeProofVersion;                }            }        }        return null;    }