final List<Widget> contentWidgets = content.getWidgets();
for (int i = 0; i < contentWidgets.size(); i++) {
virtualPanel.finishAttach(contentWidgets.get(i));
}
map.addInfoWindowCloseHandler(new MapInfoWindowCloseHandler() {
public void onInfoWindowClose(MapInfoWindowCloseEvent event) {
for (int i = 0; i < contentWidgets.size(); i++) {
virtualPanel.remove(contentWidgets.get(i));
}