IGuideSituation guideSituation = DomainFactory.makeGuideSituation(situation, remarks, date, guide, new State( State.ACTIVE));
for (IGuideSituation guideSituation : guide.getGuideSituations()) { guideSituation.setState(new State(State.INACTIVE)); }
    public void run(Integer guideID, String remarks, GuideState situation, Date date)            throws ExcepcaoPersistencia {        ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();        IGuide guide = (IGuide) sp.getIPersistentGuide().readByOID(Guide.class, guideID, true);        IGuideSituation guideSituation = DomainFactory.makeGuideSituation(situation, remarks, date, guide, new State(                State.ACTIVE));        for (Iterator iter = guide.getGuideSituations().iterator(); iter.hasNext();) {            IGuideSituation guideSituationTmp = (IGuideSituation) iter.next();            guideSituationTmp.setState(new State(State.INACTIVE));            sp.getIPersistentGuideSituation().simpleLockWrite(guideSituationTmp);        }        guide.getGuideSituations().add(guideSituation);    }