e.printStackTrace();
  protected void attachLegs (Connection connection, FilterClauses filterClauses, int recentRun, 			     UIDGenerator generator, Tree tree, Map instanceToNode) {    ResultSet rs = getResultSet(connection, formLegSql (filterClauses, recentRun));    try{      while(rs.next()){	String id        = rs.getString (1);	String start     = rs.getString (2);	String end       = rs.getString (3);	int    legtype   = rs.getInt (4);	String convid    = rs.getString (5);	int    convtype  = rs.getInt (6);	String nomen     = rs.getString (7);	String bumperno  = rs.getString (8);	String startLoc  = rs.getString (9);	String startName = rs.getString (10);	String endLoc    = rs.getString (11);	String endName   = rs.getString (12);	Node legNode = createAssetLeg(generator, id, start, end, convtype, 				      startLoc, startName, endLoc, endName,				      legtype, nomen, bumperno);	Node instanceNode = (Node)instanceToNode.get(convid);	if (instanceNode == null)	  TPFDDLoggerFactory.createLogger().logMessage(Logger.NORMAL, Logger.GENERIC, "UnitQuery.attachLegsFromResult - no instance node for : " + convid);	else {	  tree.addNode (instanceNode.getUID(), legNode);	}      }    } catch (SQLException e) {      TPFDDLoggerFactory.createLogger().logMessage(Logger.NORMAL, Logger.GENERIC, "UnitQuery.attachLegsFromResult - SQLError : " + e);    }finally{      if(rs!=null) {	try { rs.close(); } catch (SQLException e){	  TPFDDLoggerFactory.createLogger().logMessage(Logger.NORMAL, Logger.GENERIC, "UnitQuery.attachLegsFromResult - " +			      "closing result set, got sql error : " + e); 	}      }    }  }