private void addMessage(Level level, final Component label) {
final Div messageEntry = createMessage(level, label);
container.appendChild(messageEntry);
Events.echoEvent(DETACH_EVENT_NAME, messageEntry, "");
messageEntry.addEventListener(DETACH_EVENT_NAME, new EventListener() {
@Override
public void onEvent(Event event) {
pendingToDetach.offer(new ComponentHolderTimestamped(
messageEntry));