using Aspose version 22.5
Run runR = paragraph.getRuns().get(0);
builder.moveTo(runR);
bkName = "Shape" + String.valueOf(shapeCounter);
builder.startBookmark(bkName);
BookmarkEnd bookmarkEndRun = new BookmarkEnd(document, bkName);
runR.getParentNode().insertAfter(bookmarkEndRun, runR);
Ex :
HTML O/P : please visit go to <a id="e9" href="http://www.google.nl/"><span id="e4">google</span></a><span id="e5"> </span>approximately
After Bookmark created O/P : please visit go to <span id="e4">google</span><span id="e5"> </span>approximately