ContainerShape activityContainer = (ContainerShape) BusinessObjectUtil.getFirstBaseElementFromDiagram(diagram,
event.getAttachedToRef());
GraphicsAlgorithm activityGa = activityContainer.getGraphicsAlgorithm();
ILocation activityLoc = peService.getLocationRelativeToDiagram(activityContainer);
if (!(activityContainer.equals(context.getTargetContainer()) || activityContainer.eContainer().equals(
context.getTargetContainer()))) {
return false;
}
PositionOnLine pos = getPositionOnLine(x, y, eventGa.getWidth(), eventGa.getHeight(), activityLoc.getX(),