Map<Split.ConnectionRef, Constraint> map = new HashMap<Split.ConnectionRef, Constraint>( splitNode.getConstraints() );
for ( Iterator<Map.Entry<Split.ConnectionRef, Constraint>> it = map.entrySet().iterator(); it.hasNext(); ) {
Map.Entry<Split.ConnectionRef, Constraint> entry = it.next();
Split.ConnectionRef connection = entry.getKey();
ConstraintImpl constraint = (ConstraintImpl) entry.getValue();
Connection outgoingConnection = null;
for (Connection out: splitNode.getDefaultOutgoingConnections()) {
if (out.getToType().equals(connection.getToType())
&& out.getTo().getId() == connection.getNodeId()) {
outgoingConnection = out;
}