private void a(AddToBagInputEntity addtobaginputentity, JSONArray jsonarray, JSONArray jsonarray1)
    {
        JSONObject jsonobject;
        int i1;
        jsonobject = new JSONObject();
        i1 = 0;
_L2:
        if (i1 >= addtobaginputentity.getmAttributesList().size())
        {
            break; /* Loop/switch isn't completed */
        }
        jsonobject.put("type", ((AttributesList)addtobaginputentity.getmAttributesList().get(i1)).getType());
        jsonobject.put("value", ((AttributesList)addtobaginputentity.getmAttributesList().get(i1)).getValue());
        i1++;
        if (true) goto _L2; else goto _L1
 private void a(AddToBagInputEntity addtobaginputentity, JSONArray jsonarray)
 {
     JSONObject jsonobject = new JSONObject();
     try
     {
         jsonobject.put("id", addtobaginputentity.getId());
         jsonobject.put("ppId", addtobaginputentity.getPpId());
         jsonobject.put("quantity", addtobaginputentity.getQuantity());
         jsonobject.put("searchTerm", "");
     }
     // Misplaced declaration of an exception variable
     catch (AddToBagInputEntity addtobaginputentity)
     {
         addtobaginputentity.printStackTrace();
     }
     jsonarray.put(jsonobject);
 }
 private void a(AddToBagInputEntity addtobaginputentity)
 {
     Object obj;
     JSONArray jsonarray;
     if (addtobaginputentity.getvDataType() != null)
     {
         l = addtobaginputentity.getvDataType();
     } else
     if (addtobaginputentity.getProductType() != null)
     {
         l = addtobaginputentity.getProductType();
     }
     jsonarray = new JSONArray();
     obj = new JSONArray();
     if (b.getString(0x7f070348).equalsIgnoreCase(l))
     {
         c(addtobaginputentity, jsonarray);
     } else
     if (b.getString(0x7f070297).equalsIgnoreCase(l))
     {
         b(addtobaginputentity, jsonarray, ((JSONArray) (obj)));
     } else
     if (b.getString(0x7f070223).equalsIgnoreCase(l) || b.getString(0x7f0701fb).equalsIgnoreCase(l) || b.getString(0x7f070284).equalsIgnoreCase(l))
     {
         a(addtobaginputentity, jsonarray, ((JSONArray) (obj)));
     } else
     if (b.getString(0x7f0701f3).equalsIgnoreCase(l))
     {
         b(addtobaginputentity, jsonarray);
     } else
     {
         a(addtobaginputentity, jsonarray);
     }
     obj = new JSONObject();
     try
     {
         ((JSONObject) (obj)).put("items", jsonarray);
     }
     catch (JSONException jsonexception)
     {
         jsonexception.printStackTrace();
     }
     n = addtobaginputentity.getQuantity();
     addtobaginputentity = new a(b);
     addtobaginputentity.a(this);
     addtobaginputentity.a(((JSONObject) (obj)));
 }