code: @SuppressWarnings("rawtypes")
    @Override
    public Object exec(List arguments) throws TemplateModelException {
  
      // Classes
      String typeName = arguments.get(0).toString();
      String res = translate(typeName, toReplace);
  
      // Instance properties
      String classNamePath = arguments.size() > 1 ? "module:" + arguments.get(1).toString() : "";
  
      String instanceProperty = "{@link " + classNamePath + "#$1}";
      String instancePropertyAlt = "{@link " + classNamePath + "#$2 $1}";
  
      res = translate(res,
          Arrays.asList(new String[][] { { ":rom:meth:`([^`]*?)<([^`]*?)>`", instancePropertyAlt },
              { ":rom:meth:`([^`]*?)`", instanceProperty },
              { ":rom:attr:`([^`]*?)<([^`]*?)>`", instancePropertyAlt },
              { ":rom:attr:`([^`]*?)`", instanceProperty }, }));
  
      // Glosaries
      Matcher m2 = glossary_term_2.matcher(res);
      while (m2.find()) {
        res = res.substring(0, m2.start() - 1)
            + String.format(glossary_href, make_id(m2.group(2)), m2.group(1))
            + res.substring(m2.end() + 1);
      }
  
      m2 = glossary_term_1.matcher(res);
      while (m2.find()) {
        res = res.substring(0, m2.start())
            + String.format(glossary_href, make_id(m2.group(1)), m2.group(1))
            + res.substring(m2.end());
      }
  
      return res;
    }
docs: Takes a string and replaces occurrences of rst/sphinx with kurento domain markup with javadoc
  and jsdoc equivalents.
  
  @param arguments
  A list of arguments as Strings from the call. The first one is the rst/sphinx text,
  and the second optional one defines the current class full name.
  
  @see freemarker.template.TemplateMethodModelEx#exec(java.util.List)