code: private String getWidgetConfig(
          String settingsWidget,
          String settingsConfig,
          CmsMessages messages,
          Locale contentLocale) {
  
          Class<? extends I_CmsADEWidget> widgetClass = WIDGET_MAPPINGS.get(settingsWidget);
          String config = "";
          if (widgetClass == null) {
              widgetClass = CmsInputWidget.class;
          }
          try {
              I_CmsADEWidget widget = widgetClass.newInstance();
              widget.setConfiguration(settingsConfig);
              config = widget.getConfiguration(getCmsObject(), null, messages, null, contentLocale);
          } catch (Exception e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
          return config;
      }
docs: Transforms the widget configuration.<p>
  @param settingsWidget the settings widget name
  @param settingsConfig the setting widget configuration
  @param messages the workplace messages
  @param contentLocale the content locale
  
  @return the client widget configuration string