/**
  * Factory method that creates a ContentValues containing the RawContact associated with the
  * account type/name.
  */
 private ContentValues makeRawContact(int starred) {
   ContentValues values = new ContentValues();
   values.put(RawContacts.ACCOUNT_TYPE, mOps.getAccountType());
   values.put(RawContacts.ACCOUNT_NAME, mOps.getAccountName());
   values.put(Contacts.STARRED, starred);
   return values;
 }
  /**
   * Constructor stores the ContentResolver, Iterator that contains all the contacts to delete, and
   * the account type/name.
   */
  public InsertAsyncCommand(ContactsOps ops, Iterator<String> contactsIter, AtomicInteger counter) {
    // Set the ContentResolver from the Activity context.
    super(ops.getActivity().getContentResolver());

    // Store the ContactOps and the iterator.
    mOps = ops;
    mContactsIter = contactsIter;
    mCounter = counter;
  }