PictogramElement pictogramElement = context.getPictogramElement();
Object bo = getBusinessObjectForPictogramElement(pictogramElement);
if (pictogramElement instanceof ContainerShape) {
if (bo instanceof FlowElement) {
return new UpdateFlowElementFeature(this);
} else if (bo instanceof Pool || bo instanceof Lane) {
return new UpdatePoolAndLaneFeature(this);
} else if (bo instanceof TextAnnotation) {
return new UpdateTextAnnotationFeature(this);
}