outgoingElementWrappers.add(connection.getTarget());
outgoingConnections.add(connection);
}
for (Iterator it = incomingConnections.iterator(); it.hasNext(); ) {
ElementConnection connection = (ElementConnection) it.next();
connection.disconnect();
}
for (Iterator it = outgoingConnections.iterator(); it.hasNext(); ) {
ElementConnection connection = (ElementConnection) it.next();
connection.disconnect();
}