The following sample deactivates an existing active account record.
// this sample assumes an active account already exists with the unique key (String) value equal to uniqueKey
protected AccountRepository accountRepository;
accountRepository.deactivateAccount(uniqueKey);