e.printStackTrace();
  protected SortedMap buildCargoProtosFromResult (ResultSet rs, UIDGenerator generator, Map protoToNode, Map protoToName) {	SortedMap nameToNode = new TreeMap ();		try{	  int total = 0;	  while(rs.next()){		String type  = rs.getString (1);		String nomen = rs.getString (2);		String proto = rs.getString (3);		boolean isLowFi = rs.getString (4).charAt(0)=='t';				Node typeNode = createCargoType (generator, proto, type, nomen, isLowFi);		nameToNode.put (nomen, typeNode);		protoToNode.put (proto, typeNode);		protoToName.put (proto, nomen);		//		protoToNode.put (parentProto, typeNode);		//		if (debug)		//		  TPFDDLoggerFactory.createLogger().logMessage(Logger.NORMAL, Logger.GENERIC, "UnitQuery.buildCargoProtosFromResult - mapping proto " + proto + "->" +		//							  typeNode);		total++;	  }	  if (debug)		TPFDDLoggerFactory.createLogger().logMessage(Logger.NORMAL, Logger.GENERIC, "UnitQuery.buildCargoProtosFromResult - got " + total +							" cargo types");	} catch (SQLException e) {	  TPFDDLoggerFactory.createLogger().logMessage(Logger.NORMAL, Logger.GENERIC, "UnitQuery.buildCargoProtosFromResult - SQLError : " + e);	}finally{	  if(rs!=null) {		try { rs.close(); } catch (SQLException e){		  TPFDDLoggerFactory.createLogger().logMessage(Logger.NORMAL, Logger.GENERIC, "UnitQuery.buildCargoProtosFromResult - " +							  "closing result set, got sql error : " + e); 		}	  }	}		return nameToNode;  }