}
if (!caption.isAttached()) {
// Insert caption at widget index == before widget
getWidget().insert(caption, widgetPosition);
}
caption.updateCaption();
} else if (caption != null) {
childIdToCaption.remove(childId);
getWidget().remove(caption);
}
}