// create link and wire it
link(connection, addedEReference);
// add dynamic text decorator for the reference name
ConnectionDecorator textDecorator = peCreateService.createConnectionDecorator(connection, true, 0.5, true);
Text text = gaService.createDefaultText(getDiagram(), getDiagram().getGraphicsAlgorithm());
textDecorator.setConnection(connection);
text.setStyle(StyleUtil.getStyleForCamelText((getDiagram())));
gaService.setLocation(text, 10, 0);
// set reference name in the text decorator
Flow flow = (Flow) context.getNewObject();
text.setValue(flow.getName());
// add static graphical decorators (composition and navigable)
ConnectionDecorator cd;
cd = peCreateService.createConnectionDecorator(connection, false, 1.0, true);
createArrow(cd);