private void restoreConnections() {
int i = 0;
for (Iterator it = incomingConnections.iterator(); it.hasNext(); ) {
ElementConnection connection = (ElementConnection) it.next();
connection.connect((ElementWrapper) incomingElementWrappers.get(i), child);
i++;
}
i = 0;
for (Iterator it = outgoingConnections.iterator(); it.hasNext(); ) {
ElementConnection connection = (ElementConnection) it.next();