}
  protected void attachLegs (Connection connection, FilterClauses filterClauses, int recentRun, Tree cargoTree,			     Map instanceToNode) {    FilterClauses myFC=new FilterClauses(filterClauses);//     myFC.setCarrierTypes(new ArrayList());//     myFC.setCarrierInstances(new ArrayList());    long time;    time=System.currentTimeMillis();    if(run.hasCargoLegTable()){      ResultSet rs = getResultSet(connection, formFastCargoLegSql(myFC, recentRun));      if (myFC.getRollup ())	attachRollupLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);      else	attachLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);      rs = getResultSet(connection, formManifestLegSql(myFC, recentRun));      if (myFC.getRollup ())	attachRollupLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);      else	attachLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);          }else{      ResultSet rs = getResultSet(connection, formCargoLegSql (myFC, recentRun, false));      if (myFC.getRollup ())	attachRollupLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);      else	attachLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);      rs = getResultSet(connection, formCargoLegSql (myFC, recentRun, true));      if (myFC.getRollup ())	attachRollupLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);      else	attachLegsFromResult (rs, cargoTree.getGenerator(), instanceToNode, cargoTree);    }    if(showSqlTime){      System.out.println((run.hasCargoLegTable()?"Fast ":"")+"FilterCargoLeg query took: "+			 (System.currentTimeMillis()-time));    }  }