Copy of an IndexedContainer

Hi, i’m fairly new to Vaadin.
So my first question is how can i create a copy of an IndexedContainer?
The clone() method is unfortunately deprecated.

Thx, Maurice