if (guideSituation.getState().equals(new State(State.ACTIVE))) {
if (guideSituation.getState().getState().equals(State.ACTIVE)) {
    public GuideSituation getActiveSituation() {        if (this.getGuideSituations() != null) {            Iterator iterator = this.getGuideSituations().iterator();            while (iterator.hasNext()) {                GuideSituation guideSituation = (GuideSituation) iterator.next();                if (guideSituation.getState().equals(new State(State.ACTIVE))) {                    return guideSituation;                }            }        }        return null;    }