hidden    = Boolean.getBoolean(tok.nextToken());
hidden    = stringToBoolean(tok.nextToken());
  protected void rebuildBeanConnections(Vector deserialized, Object key) throws Exception {    int                     i;    int                     n;    int                     sourcePos;    int                     targetPos;    String                  event;    boolean                 hidden;    BeanInstance            instSource;    BeanInstance            instTarget;    Vector                  conns;    BeanConnection          conn;    StringTokenizer         tok;    conns = (Vector) m_BeanConnectionRelation.get(key);        // no connections?    if (conns == null)      return;        for (n = 0; n < conns.size(); n++) {      tok       = new StringTokenizer(conns.get(n).toString(), ",");      conn      = null;      sourcePos = Integer.parseInt(tok.nextToken());      targetPos = Integer.parseInt(tok.nextToken());      event     = tok.nextToken();      hidden    = Boolean.getBoolean(tok.nextToken());      // regular connection? -> new instance      if (!(key instanceof MetaBean)) {        conn = createBeanConnection(sourcePos, targetPos, event, hidden);      }      // MetaBean? -> find BeanConnection       else {        for (i = 0; i < BeanConnection.getConnections().size(); i++) {          conn = (BeanConnection) BeanConnection.getConnections().get(i);          if (    (conn.getSource() == (BeanInstance) m_BeanInstances.get(sourcePos))               && (conn.getTarget() == (BeanInstance) m_BeanInstances.get(targetPos))               && (conn.getEventName().equals(event)) ) {            break;          }          conn = null;        }      }            // add the connection to the corresponding list/MetaBean      if (key instanceof MetaBean)        setBeanConnection(conn, ((MetaBean) key).getAssociatedConnections());      else        setBeanConnection(conn, (Vector) deserialized.get(1));    }  }