}
// set swimlanes
for (Node node : targetNodeList.values()) {
if (node instanceof SwimlanedNode) {
SwimlanedNode sourceNode = (SwimlanedNode) copyBuffer.getSourceDefinition().getNodeByNameNotNull(node.getName());
Swimlane swimlane = targetDefinition.getSwimlaneByName(sourceNode.getSwimlaneName());
((SwimlanedNode) node).setSwimlane(swimlane);
}
}
} catch (Exception e) {
DesignerLogger.logError("'Paste' operation failed", e);