void replaceConnections(Vector<TSConnection> newConnections,
			Vector<TSEvent> eventList) {
		for (int i = 0; i < newConnections.size(); i++) {
			TSConnection conn = (TSConnection) newConnections.elementAt(i);
			if (conn.isTerminalConnection()) {
				conn = conn.getTSConn();
				newConnections.setElementAt(conn, i);
			}

			addConnection(conn, null);
		}

		Vector<TSConnection> conns = new Vector<TSConnection>(this.connections);
		for (int i = 0; i < conns.size(); i++) {
			TSConnection conn = (TSConnection) conns.elementAt(i);
			if (!newConnections.contains(conn)) {
				conn.setConnectionState(89, eventList);
			}
		}
	}