title: POI - get.hyperlink() is not retrieving the latest hyperlink of a cell
body: <p>Here I'm overwriting a the 1st hyperlink with 2nd hyperlink in a same cell and <code>get.hyperlink()</code> method is always pulling the hyperlink that was first written in a cell. </p>
  
  <p>Any help around this would be great!! Thanks in advance</p>
  
  <p>Below is my code and output:</p>
  
  <pre><code>public static void main(String[] args) {
      ExcelUtils2.writeHyperLink("DashboardCopy", 1, 1, "test1", "https://google.com");
      ExcelUtils2.writeHyperLink("DashboardCopy", 1, 1, "test2", "https://facebook.com");
      String dtr = ExcelUtils2.getCellHyperlink(1, 1);
      System.out.println("Hyperlink of the cell is &gt;&gt; " + dtr);
  }
  
  
  public static synchronized void writeHyperLink(String workBookName, int irow, int icol, String ivalue, String iUrl)
          throws InvalidFormatException, IOException {
      FileInputStream excelFile = new FileInputStream(excelSource);
      excelWBook = new XSSFWorkbook(excelFile);
      excelWSheet = excelWBook.getSheet(workBookName);
      createHelper = excelWBook.getCreationHelper();
      XSSFRow row = excelWSheet.getRow(irow);
      XSSFCell cell = row.createCell(icol);
      cell.setCellValue(ivalue);
      XSSFHyperlink link = (XSSFHyperlink) createHelper.createHyperlink(HyperlinkType.URL);
      link.setAddress(iUrl);
      cell.setHyperlink(link);
      FileOutputStream fos = new FileOutputStream(excelSource);
      excelWBook.write(fos);
      fos.close();
  
  }
  
  public static String getCellHyperlink(int rowNum, int colNum) throws Exception {
      FileInputStream excelFile = new FileInputStream(excelSource);
      excelWBook = new XSSFWorkbook(excelFile);
      excelWSheet = excelWBook.getSheet("DashboardCopy");
      XSSFRow row = excelWSheet.getRow(rowNum);
      XSSFCell cell = row.getCell(colNum);
      XSSFHyperlink link = cell.getHyperlink();
      String cellData = link.getAddress();
      // System.out.println(link.getAddress());
      return cellData;
  }
  </code></pre>
  
  <p>Output:
  Hyperlink of the cell is >> <a href="https://google.com" rel="nofollow noreferrer">https://google.com</a></p>
  
  <p>Expected Output:
  It should print <a href="https://facebook.com" rel="nofollow noreferrer">https://facebook.com</a></p>