private void createAndShowDialog() {
Runnable job = new Runnable() {
@Override
public void run() {
EntitySearchUi ui = createSearchUi();
dialog = new EntitySearchDialog(ui);
dialog.addWindowListener(new WindowAdapter() {
@Override
public void windowClosed(WindowEvent e) {