public WikiPageIdUpgradeColumnImpl(UpgradeColumn nodeIdColumn, UpgradeColumn titleColumn) {

    super("pageId", false);

    _nodeIdColumn = nodeIdColumn;
    _titleColumn = titleColumn;
    _wikiPageIdMapper = ValueMapperFactoryUtil.getValueMapper();
  }
  protected String replaceIds(String content) throws Exception {
    ValueMapper dlFolderIdMapper = AvailableMappersUtil.getDLFolderIdMapper();

    content =
        IdReplacer.replaceLongIds(
            content, "/document_library/get_file?folderId=", dlFolderIdMapper);
    content =
        IdReplacer.replaceLongIds(
            content,
            "_20_struts_action=%2Fdocument_library%2Fget_file&_20_folderId=",
            dlFolderIdMapper);
    content =
        IdReplacer.replaceLongIds(
            content,
            "_20_struts_action=%2Fdocument_library%2Fget_file&" + "_20_folderId=",
            dlFolderIdMapper);

    ValueMapper imageIdMapper = AvailableMappersUtil.getImageIdMapper();

    ValueMapper newImageIdMapper = ValueMapperFactoryUtil.getValueMapper();

    ValueMapper igImageIdMapper = AvailableMappersUtil.getIGImageIdMapper();

    Iterator<Object> itr = igImageIdMapper.iterator();

    while (itr.hasNext()) {
      String oldValue = (String) itr.next();

      PKParser oldValuePKParser = new PKParser(oldValue);

      String companyId = oldValuePKParser.getString("companyId");
      String oldIGImageId = oldValuePKParser.getString("imageId");

      String oldImageId = companyId + ".image_gallery." + oldIGImageId + ".large";

      Long newImageId = (Long) imageIdMapper.getNewValue(oldImageId);

      newImageIdMapper.mapValue(new Long(GetterUtil.getLong(oldIGImageId)), newImageId);
    }

    content = IdReplacer.replaceLongIds(content, "/image_gallery?img_id=", newImageIdMapper);

    return content;
  }