DiagramElement possibleParent = editor.getDiagram().getChildAt(
tmpPos.getX(), tmpPos.getY());
if (isNestingCondition(possibleParent)) {
parent = (CompositeNode) possibleParent;
}
AddNodeCommand createCommand = new AddNodeCommand(editor,
parent, element, tmpPos.getX(), tmpPos.getY());
editor.execute(createCommand);
}