}
} else {
if (!accountNameText.getText().equals("")) {
if (account.getAgencyAddress() != null) {
system.executeAndQuery(new EditAccount(account.getId(), accountNameText.getText(), bankAgencyAddressText.getText(), bankAgencyManagerText.getText(), bankAgencyPhoneText.getText(), responsableAccountNameText.getText(), new Money(limitAccountText.getText())));
} else {
system.executeAndQuery(new EditAccount(account.getId(), accountNameText.getText()));
}
account.setActive(isAccountActive.getSelection());
accountCotrolCenter.updateTable();
close();