docs: public void doAdd(@FormGroup("dataMediaSourceInfo") Group dataMediaSourceInfo,
                        @FormField(name = "formDataMediaSourceError", group = "dataMediaSourceInfo") CustomErrors err,
                        Navigator nav) throws Exception {
          DataMediaSource dataMediaSource = new DataMediaSource();
          dataMediaSourceInfo.setProperties(dataMediaSource);
  
          if (dataMediaSource.getType().isMysql() || dataMediaSource.getType().isOracle()) {
              DbMediaSource dbMediaSource = new DbMediaSource();
              dataMediaSourceInfo.setProperties(dbMediaSource);
              if (dataMediaSource.getType().isMysql()) {
                  dbMediaSource.setDriver("com.mysql.jdbc.Driver");
              } else if (dataMediaSource.getType().isOracle()) {
                  dbMediaSource.setDriver("oracle.jdbc.driver.OracleDriver");
              }
              try {
                  dataMediaSourceService.create(dbMediaSource);
              } catch (RepeatConfigureException rce) {
                  err.setMessage("invalidDataMediaSource");
                  return;
              }
          } else if (dataMediaSource.getType().isNapoli() || dataMediaSource.getType().isMq()) {
              MqMediaSource mqMediaSource = new MqMediaSource();
              dataMediaSourceInfo.setProperties(mqMediaSource);
  
              try {
                  dataMediaSourceService.create(mqMediaSource);
              } catch (RepeatConfigureException rce) {
                  err.setMessage("invalidDataMediaSource");
                  return;
              }
          }
  
          nav.redirectTo(WebConstant.DATA_MEDIA_SOURCE_LIST_LINK);
      }