docs: function renameID(idFrom, idTo, $identifiedElements, referencedIDs) {
  
  
    var $definingNode = $identifiedElements.find('#' + idFrom);
    $definingNode.attr('id', idTo);
    var referringNodes = referencedIDs[idFrom];
  
    _(referringNodes).each(function(referenceTypeNodeAndAdditionalInfos) {
      var property = referenceTypeNodeAndAdditionalInfos[0];
      var node = $(referenceTypeNodeAndAdditionalInfos[1]);
      switch(property) {
        case REFERENCE_TYPE.STYLE_TAG:
          node.text(replaceReferencedId(node.text(), idFrom, idTo));
          break;
        case REFERENCE_TYPE.XLINK:
          node.attr('xlink:href', '#' + idTo);
          break;
        case REFERENCE_TYPE.STYLE_ATTRIBUTE:
          node.attr('style', replaceReferencedId(node.attr('style'), idFrom, idTo));
          break;
        case REFERENCE_TYPE.ATTRIBUTE:
          var attributeName = referenceTypeNodeAndAdditionalInfos[2];
          node.attr(attributeName, replaceReferencedId(node.attr(attributeName), idFrom, idTo));
          break;
        default:
          // unkonw reference_type
      }
  
    });
  
  }