public void deleteContact() {
System.out.println("ToolBarActivity.deleteContact()");
ContactDetailsActivity contactDetailsActivity = ActivityRegistry.getContactDetailsActivity();
if (contactDetailsActivity != null) {
final Contact contact = contactDetailsActivity.getContact();
IContactServiceAsync contactService = clientFactory.getContactService();
contactService.deleteContact(contact, new AsyncCallback<Void>() {
@Override
public void onSuccess(Void result) {
System.out.println("Contact deleted");
clientFactory.setContacts(null);