@Override
protected void hook(Activity activity, ContainerShape container, IAddContext context, int width, int height) {
IPeService peService = Graphiti.getPeService();
IGaService gaService = Graphiti.getGaService();
Shape textShape = peService.createShape(container, false);
MultiText text = gaService.createDefaultMultiText(getDiagram(), textShape, activity.getName());
int padding = GraphicsUtil.TASK_IMAGE_SIZE;
gaService.setLocationAndSize(text, 0, padding, width, height - padding);
text.setStyle(StyleUtil.getStyleForText(getDiagram()));
text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);