/** @return the established connection specified by the connection model, null if non-existent */
 public GnutellaConnection getEstablishedConnection(ConnectionModel model) {
   GnutellaConnection connection = null;
   synchronized (establishedConnections) {
     int size = establishedConnections.size();
     for (int i = 0; i < size; i++) {
       connection = (GnutellaConnection) establishedConnections.get(i);
       if (model.equals(connection.getConnectionModel())) break;
     }
   }
   return connection;
 }
 public void download() {
   AjaxParams ajaxParams = new AjaxParams();
   ajaxParams.put("num", "10");
   ajaxParams.put("time", "");
   ajaxParams.put("than", "");
   ajaxParams.put("orderBy", "");
   connectionModel.getDatabyNet(
       "http://1.onedollar.sinaapp.com/phone/coupon-class-list.action",
       ajaxParams,
       new JsonParser() {
         @Override
         public void parser(String t) {
           jsonUtils.parseJsonToEntity(t, handler);
         }
       });
 }
  public CouponsFamilyModel(Context context, Handler handler) {
    connectionModel = ConnectionModel.getInstance(context);
    jsonUtils = new JsonUtils(context);

    mContext = context;
  }