private CanonicalProcessType buildCPF() {
    CanonicalProcessType cpf = new CanonicalProcessType();

    NetType net = new NetType();

    EventType event = new EventType();
    event.setId("1");
    event.setOriginalID("1");
    event.setName("event");

    TaskType task = new TaskType();
    task.setId("2");
    task.setOriginalID("2");
    task.setName("task");

    EdgeType edge = new EdgeType();
    edge.setId("3");
    edge.setOriginalID("3");
    edge.setSourceId("1");
    edge.setTargetId("2");

    net.getNode().add(event);
    net.getNode().add(task);
    net.getEdge().add(edge);
    cpf.getNet().add(net);

    return cpf;
  }
 /**
  * Simple connection between two already converted element. Source and Target have to be SESE, as
  * we are not going to introduce any kind of routing node.
  *
  * @param sourceNode of CPF
  * @param targetNode of CPF
  * @return a CPF edge
  * @throws CanoniserException
  */
 protected EdgeType createSimpleEdge(final NodeType sourceNode, final NodeType targetNode)
     throws CanoniserException {
   final EdgeType edge = CPF_FACTORY.createEdgeType();
   // Assign unique ID that is reproducible by using sources and targets ID
   edge.setId(generateEdgeId(sourceNode, targetNode));
   edge.setSourceId(sourceNode.getId());
   edge.setTargetId(targetNode.getId());
   getConvertedParent().getEdge().add(edge);
   if (sourceNode.getOriginalID() != null && targetNode.getOriginalID() != null) {
     createGraphicsForFlow(sourceNode.getOriginalID(), targetNode.getOriginalID());
   } else {
     createGraphicsForFlow(sourceNode.getId(), targetNode.getId());
   }
   return edge;
 }