// THIS BLOCK CONTAINS JAVA CODE.
  private long removeRefBitcoinAcct(long lIndex) {
    //
    // loop through the elements in the actual container, in order to find the one
    // at lIndex. Once it is found, then loop through the reference list and remove
    // the corresponding reference for that element.
    //
    BitcoinAcct refActualElement = GetBitcoinAcct(lIndex);

    if (refActualElement == null) return lIndex; // oh well.

    // Loop through the reference list and remove the corresponding reference
    // for the specified element.
    //
    for (int intIndex = 0; intIndex < elementList.size(); intIndex++) {
      Object theObject = elementList.get(intIndex);

      if ((theObject == null) || !(theObject instanceof BitcoinAcct)) continue;

      BitcoinAcct tempRef = (BitcoinAcct) (theObject);

      if ((BitcoinAcct.getCPtr(tempRef) == BitcoinAcct.getCPtr(refActualElement))) {
        elementList.remove(tempRef);
        break;
      }
    }

    return lIndex;
  }
  private long getCPtrAddRefBitcoinAcct(BitcoinAcct element) {
    // Whenever adding a reference to the list, I remove it first (if already there.)
    // That way we never store more than one reference per actual contained object.
    //
    for (int intIndex = 0; intIndex < elementList.size(); intIndex++) {
      Object theObject = elementList.get(intIndex);

      if ((theObject == null) || !(theObject instanceof BitcoinAcct)) continue;

      BitcoinAcct tempRef = (BitcoinAcct) (theObject);

      if ((BitcoinAcct.getCPtr(tempRef) == BitcoinAcct.getCPtr(element))) {
        elementList.remove(
            tempRef); // It was already there, so let's remove it before adding (below.)
        break;
      }
    }
    // Now we add it...
    //
    BitcoinAcct tempLocalRef = element;
    elementList.add(tempLocalRef);
    return BitcoinAcct.getCPtr(element);
  } // Hope I get away with overloading this for every type. Otherwise,
 public boolean AddBitcoinAcct(BitcoinAcct disownObject) {
   return otapiJNI.WalletData_AddBitcoinAcct(
       swigCPtr, this, BitcoinAcct.getCPtr(disownObject), disownObject);
 }