if (fw != null)
fw.setBusy(true);;
try {
UserProfile defaultProfile = getDefaultProfile();
AddressBook book = null;
if (defaultProfile != null) {
book = defaultProfile.getAddressBook();
}
if (book == null) {
// get the default Address Book.
book = Pooka.getAddressBookManager().getDefault();
}
if (book != null) {
final String newAddress = getMessageInfo().addAddress(book, true);
final String bookName = book.getAddressBookID();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
getMessageUI().showMessageDialog(Pooka.getResources().formatMessage("info.AddressBook.add", newAddress, bookName), Pooka.getProperty("info.AddressBook.add.title", "Address Added"));
}