if (!masterDegreeProofVersion.getCurrentState().equals(State.ACTIVE)) {
if (!masterDegreeProofVersion.getCurrentState().getState().equals(State.ACTIVE)) {
    public List<MasterDegreeProofVersion> readNotActiveMasterDegreeProofVersions() {        MasterDegreeThesis masterDegreeThesis = this.getMasterDegreeThesis();        List<MasterDegreeProofVersion> masterDegreeProofVersions = new ArrayList<MasterDegreeProofVersion>();        if (masterDegreeThesis != null) {            for (MasterDegreeProofVersion masterDegreeProofVersion : masterDegreeThesis                    .getMasterDegreeProofVersions()) {                if (!masterDegreeProofVersion.getCurrentState().equals(State.ACTIVE)) {                    masterDegreeProofVersions.add(masterDegreeProofVersion);                }            }        }        Collections.sort(masterDegreeProofVersions, new ReverseComparator(                MasterDegreeProofVersion.LAST_MODIFICATION_COMPARATOR));        return masterDegreeProofVersions;    }