/** * INTERNAL: Set isSynchronized flag to indicate that members of session broker are synchronized. * This method should only be called by setSynchronized method of UnitOfWork obtained from either * DatabaseSession Broker or ClientSession Broker. */ public void setSynchronized(boolean synched) { if (!isServerSessionBroker()) { super.setSynchronized(synched); Iterator itSessions = getSessionsByName().values().iterator(); while (itSessions.hasNext()) { ((AbstractSession) itSessions.next()).setSynchronized(synched); } } }