code: public void launchAddWorkerDialog() {
          if (addWorkerDialog == null) {
              addWorkerDialog = new AddResourceDialog(
                      securityFramework.getSecurityContext(getProxy().getNameToken()),
                      resourceDescriptionRegistry.lookup(workerAddressTemplate),
                      new AddResourceDialog.Callback() {
                          @Override
                          public void onAdd(ModelNode payload) {
                              window.hide();
                              circuit.dispatch(new AddWorker(payload));
                          }
  
                          @Override
                          public void onCancel() {
                             window.hide();
                          }
  
                      }
              );
          } else {
              addWorkerDialog.clearValues();
          }
  
          window = new DefaultWindow("Worker");
          window.setWidth(480);
          window.setHeight(360);
          window.setWidget(addWorkerDialog);
          window.setGlassEnabled(true);
          window.center();
      }
docs: ------------------------------------------------------ worker methods