private void sendPurchase(double cost, BillType billType, String note, String store, Date date) {
    PurchaseSender purchaseSender =
        new PurchaseSender(cost, store, note, billType, date, serviceLocations);

    purchaseSender.addReturnableListener(
        new Returnable<Boolean>() {
          @Override
          public void returned(Boolean object) {
            Window.alert("Submitted " + object);
          }
        });

    purchaseSender.send();
  }
  private void sendPurchase() {
    double cost = getCost();
    String store = getStore();
    String note = getNote();
    BillType billType = getBillType();
    Date date = getDate();

    PurchaseSender purchaseSender =
        new PurchaseSender(
            cost, store, note, billType, date, AddEntryControl1.this.serviceLocations);

    purchaseSender.send();

    finishPurchase();
  }