// rewrite to null if no attributes
if (secondAttrs.isEmpty()) {
secondAttrs = Attributes.EMPTY_MAP;
}
ContentElement newLineElement = doc.createElement(
doc.locate(doc.getLocation(point)), LineContainers.LINE_TAGNAME, secondAttrs);
ContentElement newLocalParagraph = Line.fromLineElement(newLineElement).getParagraph();
element.getSelectionHelper().setCaret(
Point.start(element.getRenderedContentView(), newLocalParagraph));