}
private void deleteSequenceFlows(FlowNode flowNode) {
List<SequenceFlow> toDeleteSequenceFlows = new ArrayList<SequenceFlow>();
for (SequenceFlow incomingSequenceFlow : flowNode.getIncomingFlows()) {
SequenceFlow toDeleteObject = (SequenceFlow) getFlowElement(incomingSequenceFlow);
if (toDeleteObject != null) {
toDeleteSequenceFlows.add(toDeleteObject);
}
}
for (SequenceFlow outgoingSequenceFlow : flowNode.getOutgoingFlows()) {
SequenceFlow toDeleteObject = (SequenceFlow) getFlowElement(outgoingSequenceFlow);
if (toDeleteObject != null) {
toDeleteSequenceFlows.add(toDeleteObject);
}
}
for (SequenceFlow deleteObject : toDeleteSequenceFlows) {