if (CONSTRAINTS.equals(id)) {
Iterator<Map.Entry<ConnectionRef, Constraint>> iterator = ((Map<ConnectionRef, Constraint>) value).entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry<ConnectionRef, Constraint> element = iterator.next();
ConnectionRef connectionRef = element.getKey();
Connection outgoingConnection = null;
for (Connection out: getStateNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) {
if (out.getToType().equals(connectionRef.getToType())
&& out.getTo().getId() == connectionRef.getNodeId()) {
outgoingConnection = out;
}