else conveyChange = false;
} else { conveyChange = false; }
  private void updateTreeWithUsage(ResultSet rs, Map nameToNode) {    try {       String oldProto = null;      String oldConvey = null;      boolean protoChange = false;      boolean conveyChange = false;      int count = 0;      while (rs.next()) {	String prototypeName = rs.getString(DGPSPConstants.COL_PROTOTYPEID);	String conveyanceName = rs.getString(DGPSPConstants.COL_CONVEYANCEID);	if (oldProto == null || !prototypeName.equals(oldProto)) 	  protoChange = true; 	else protoChange = false;	if (oldConvey == null || !conveyanceName.equals(oldConvey)) 	  conveyChange = true;	else conveyChange = false;		if (protoChange) {	  if (oldProto != null) {	    AssetPrototypeNode oldNode = (AssetPrototypeNode)nameToNode.get(oldProto);	    oldNode.setUsedAssets(count);	  }	  oldProto = prototypeName;	  oldConvey = conveyanceName;	  count = 1;	  // Something is weird with the counting...	} else if (conveyChange) {	  count++;	  oldConvey = conveyanceName;	}       }      if (oldProto != null) {	AssetPrototypeNode oldNode = (AssetPrototypeNode)nameToNode.get(oldProto);	oldNode.setUsedAssets(count);      }    } catch (SQLException e) {      System.out.println ("AssetCategoryQuery.getResponse - SQLError : " + e);    }finally{      if(rs!=null) {	try { rs.close(); } catch (SQLException e){	  System.out.println ("SqlQuery.getResponse - closing result set, got sql error : " + e); 	}      }    }   }