class ElementHelper {

    public static void insertAfter(final Node newNode,
                                   final Node referenceNode) {
        referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
    }

}