*/
private void btNewClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btNewClientActionPerformed
if (mode == MODE_FIND) {
try {
ClientLocal clientLocal = new ClientLocal(getAuditManager());
CardInfo cardInfo = ((AppMainWindow) MainWindow.getMainWindow()).getCardInfo();
if (cardInfo != null){
DirectorySurname surname = DirectoryLocator.getDirectory(DirectorySurname.class);
DirectoryName name = DirectoryLocator.getDirectory(DirectoryName.class);
DirectoryPathron pathron = DirectoryLocator.getDirectory(DirectoryPathron.class);
clientLocal.setSurname(surname.getItemFromTitle(cardInfo.surname));