docs: @SuppressWarnings("deprecation")
      @Override
      public void eventCallback(String eventName, Object eventData) {
          try {
              PopupData popupData = null;
              
              if (eventData instanceof PopupData) {
                  popupData = (PopupData) eventData;
              } else {
                  popupData = new PopupData(eventData.toString());
              }
              
              if (popupData.isEmpty()) {
                  return;
              }
              
              Page currentPage = ExecutionContext.getPage();
              Window window = getPopupWindow();
              window.setTitle(popupData.getTitle());
              window.setParent(currentPage);
              String pos = getPosition();
              window.addStyle("left", pos);
              window.addStyle("top", pos);
              window.addEventListener("close", this);
              Label label = window.findByName("messagetext", Label.class);
              label.setLabel(popupData.getMessage());
              window.setMode(Mode.POPUP);
          } catch (Exception e) {}
      }