545546547548549550551552553
// add "position" element DocumentElement targetElement = target.getElement(); int targetIndex = target.getIndex(); targetElement.addChild(positionElement, targetIndex); // prepare new target return new ElementTarget(positionElement, 0); } }; }