code: public void onLaunchAddResourceDialog(final AddressTemplate address, String title) {
  
          window = new DefaultWindow(Console.MESSAGES.createTitle(title));
          window.setWidth(480);
          window.setHeight(360);
  
          AddResourceDialog addDialog = new AddResourceDialog(
                  Console.MODULES.getSecurityFramework().getSecurityContext(NameTokens.UndertowFilters),
                  descriptionRegistry.lookup(address),
                  new AddResourceDialog.Callback() {
                      @Override
                      public void onAdd(ModelNode payload) {
                          window.hide();
                          operationDelegate.onCreateResource(
                                  address, payload.get("name").asString(), payload, defaultAddOpCallbacks);
                      }
  
                      @Override
                      public void onCancel() {
                          window.hide();
                      }
                  }
          );
          window.setWidget(addDialog);
          window.setGlassEnabled(true);
          window.center();
      }
docs: -----------------------