{
// create shape for text
final Shape shape = peCreateService.createShape(containerShape, false);
// create and set text graphics algorithm
final MultiText text = gaService.createDefaultMultiText(getDiagram(), shape, addedCallActivity.getName());
text.setStyle(StyleUtil.getStyleForTask(getDiagram()));
text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
Font font = null;
if (OSUtil.getOperatingSystem() == OSEnum.Mac) {
font = gaService.manageFont(getDiagram(), text.getFont().getName(), 11, false, true);
} else {
font = gaService.manageDefaultFont(getDiagram(), false, true);
}
text.setFont(font);
gaService.setLocationAndSize(text, 0, 20, width, 30);
// create link and wire it
link(shape, addedCallActivity);