IPeService peService = Graphiti.getPeService();
int width = context.getWidth() > 0 ? context.getWidth() : getWidth();
int height = context.getHeight() > 0 ? context.getHeight() : getHeight();
ContainerShape containerShape = peService.createContainerShape(context.getTargetContainer(), true);
Rectangle invisibleRect = gaService.createInvisibleRectangle(containerShape);
gaService.setLocationAndSize(invisibleRect, context.getX(), context.getY(), width, height);
Shape rectShape = peService.createShape(containerShape, false);
RoundedRectangle rect = gaService.createRoundedRectangle(rectShape, 5, 5);
StyleUtil.applyBGStyle(rect, this);
gaService.setLocationAndSize(rect, 0, 0, width, height);
link(rectShape, activity);
decorateActivityRectangle(rect);
peService.setPropertyValue(rectShape, "activity", Boolean.toString(true));
ContainerShape markerContainer = peService.createContainerShape(containerShape, false);
Rectangle markerInvisibleRect = gaService.createInvisibleRectangle(markerContainer);
int h = 10;
int y = height - h - 3 - getMarkerContainerOffset();
gaService.setLocationAndSize(markerInvisibleRect, 0, y, invisibleRect.getWidth(), h);
peService.setPropertyValue(markerContainer, GraphicsUtil.ACTIVITY_MARKER_CONTAINER, Boolean.toString(true));