title: Problem while copying WidgetCollection in GWT?
body: <p>I have quite a strange problem , </p>
  
  <p>While copying one <code>WidgetCollection</code> from one <code>FlowPanel</code> into another one. <code>Widgets</code> in <code>WidgetCollection</code> are moving instead of copying.Because of this couple of widgets remain in previous Panel.<br />
  Here is my code:</p>
  
  <pre><code>    final FlowPanel toDelete = getWidgetByID(from);
      final FlowPanel toPaste = getWidgetByID(to);
      final Iterator&lt;Widget&gt; iterator = toDelete.iterator();
      while (iterator.hasNext()) {
          toPaste.add(iterator.next());
      }
  </code></pre>
  
  <p>and next version:</p>
  
  <pre><code>    final FlowPanel toDelete = getWidgetByID(from);
      final FlowPanel toPaste = getWidgetByID(to);
      final int count = toDelete.getWidgetCount();
      for (int i = 0; i &lt; count; i++) {
          toPaste.add(toDelete.getWidget(i));// here, i'm getting IndexOutOfTheBounds exception
      }
  </code></pre>
  
  <p>What's wrong here?
  Thanks in advance!!!</p>