code: public String decorateTagAction(String content, String configFile, String locale, ServletRequest req) {
  
          try {
              Locale loc = null;
              CmsFlexController controller = CmsFlexController.getController(req);
              if (CmsStringUtil.isEmpty(locale)) {
                  loc = controller.getCmsObject().getRequestContext().getLocale();
              } else {
                  loc = CmsLocaleManager.getLocale(locale);
              }
  
              // read the decorator configurator class
              CmsProperty decoratorClass = controller.getCmsObject().readPropertyObject(
                  configFile,
                  PROPERTY_CATEGORY,
                  false);
              String decoratorClassName = decoratorClass.getValue();
              if (CmsStringUtil.isEmpty(decoratorClassName)) {
                  decoratorClassName = DEFAULT_DECORATOR_CONFIGURATION;
              }
  
              String encoding = controller.getCmsObject().getRequestContext().getEncoding();
              // use the correct decorator configurator and initialize it
              I_CmsDecoratorConfiguration config = (I_CmsDecoratorConfiguration)Class.forName(
                  decoratorClassName).newInstance();
              config.init(controller.getCmsObject(), configFile, loc);
  
              CmsHtmlDecorator decorator = new CmsHtmlDecorator(controller.getCmsObject(), config);
  
              decorator.setNoAutoCloseTags(m_noAutoCloseTags);
              return decorator.doDecoration(content, encoding);
          } catch (Exception e) {
              if (LOG.isErrorEnabled()) {
                  LOG.error(Messages.get().getBundle().key(Messages.ERR_PROCESS_TAG_1, "decoration"), e);
              }
              return content;
          }
      }
docs: Internal action method.<p>
  
  DEcorates a HTMl content block.<p>
  
  @param content the content to be decorated
  @param configFile the config file
  @param locale the locale to use for decoration or NOLOCALE if not locale should be used
  @param req the current request
  
  @return the decorated content