if (addedEvent instanceof StartEvent && ((StartEvent) addedEvent).getEventDefinitions().size() > 0) {
StartEvent startEvent = (StartEvent) addedEvent;
final Shape shape = peCreateService.createShape(containerShape, false);
Image image = null;
if (startEvent.getEventDefinitions().get(0) instanceof TimerEventDefinition) {
image = gaService.createImage(shape, PluginImage.IMG_BOUNDARY_TIMER.getImageKey());
} else if (startEvent.getEventDefinitions().get(0) instanceof MessageEventDefinition){
image = gaService.createImage(shape, PluginImage.IMG_STARTEVENT_MESSAGE.getImageKey());
} else
image = gaService.createImage(shape, PluginImage.IMG_BOUNDARY_ERROR.getImageKey());
image.setWidth(IMAGE_SIZE);
image.setHeight(IMAGE_SIZE);
gaService.setLocationAndSize(image, (width - IMAGE_SIZE) / 2, (height - IMAGE_SIZE) / 2, IMAGE_SIZE, IMAGE_SIZE);
}
layoutPictogramElement(containerShape);