labelPos = GraphConstants.getLabelPosition(edge.getAttributes());
EdgeView view = (EdgeView)graph.getGraphLayoutCache().getMapping(edge, false); labelPos = view.getLabelPosition();
  public ResultPosition(WorkflowGraph graph, ResultEdge edge)  {    id = edge.getDescriptor().getId();    labelPos = GraphConstants.getLabelPosition(edge.getAttributes());    lineWidth = GraphConstants.getLineWidth(edge.getAttributes());    color = GraphConstants.getForeground(edge.getAttributes()).getRGB();    CustomEdgeView view = (CustomEdgeView)(graph.getGraphLayoutCache().getMapping(edge, false));    if(view != null)    {      for(int i = 0; i < (view.getPointCount() - 2); i++)      {        routingPoints.add(new Point((int)view.getPoint(i + 1).getX(), (int)view.getPoint(i + 1).getY()));      }    }  }