if (!masterDegreeThesisDataVersion.getCurrentState().equals(State.ACTIVE)) {
if (!masterDegreeThesisDataVersion.getCurrentState().getState().equals(State.ACTIVE)) {
    public List<MasterDegreeThesisDataVersion> readNotActiveMasterDegreeThesisDataVersions() {        MasterDegreeThesis masterDegreeThesis = this.getMasterDegreeThesis();        List<MasterDegreeThesisDataVersion> masterDegreeThesisDataVersions = new ArrayList<MasterDegreeThesisDataVersion>();        if (masterDegreeThesis != null) {            for (MasterDegreeThesisDataVersion masterDegreeThesisDataVersion : masterDegreeThesis                    .getMasterDegreeThesisDataVersions()) {                if (!masterDegreeThesisDataVersion.getCurrentState().equals(State.ACTIVE)) {                    masterDegreeThesisDataVersions.add(masterDegreeThesisDataVersion);                }            }        }        Collections.sort(masterDegreeThesisDataVersions, new ReverseComparator(                MasterDegreeThesisDataVersion.LAST_MODIFICATION_COMPARATOR));        return masterDegreeThesisDataVersions;    }