if (masterDegreeThesisDataVersion.getCurrentState().equals(State.ACTIVE)) {
if (masterDegreeThesisDataVersion.getCurrentState().getState().equals(State.ACTIVE)) {
    public MasterDegreeThesisDataVersion readActiveMasterDegreeThesisDataVersion() {        MasterDegreeThesis masterDegreeThesis = this.getMasterDegreeThesis();        if (masterDegreeThesis != null) {            for (MasterDegreeThesisDataVersion masterDegreeThesisDataVersion : masterDegreeThesis                    .getMasterDegreeThesisDataVersions()) {                if (masterDegreeThesisDataVersion.getCurrentState().equals(State.ACTIVE)) {                    return masterDegreeThesisDataVersion;                }            }        }        return null;    }