private void replace(ReplacementAction replacementAction) throws Exception {
TextDocument docToReplaceIn = TextDocument.newTextDocument();
Table newTable = docToReplaceIn.getTableBuilder().newTable(2, 2);
Cell cell = newTable.getCellByPosition(0, 0);
cell.addParagraph("<<ONE>>");
cell.addParagraph("<<TWO>>");
Map<String, String> replacements = new TreeMap<String, String>();
replacements.put("<<ONE>>", "1");
replacements.put("<<TWO>>", "2");