// using new button renderer into rendering internal button
internalButtonRenderer.renderOpen(protocol, buttonAttributes);
Element element = buffer.getCurrentElement();
// Write default button content.
buffer.writeText((String) buttonCaptions.get(pseudoElement));
internalButtonRenderer.renderClose(protocol, buttonAttributes);
if (contentValue != null) {
// Insert content for button element...