public static AbstractNode toAbstractNode(Object input) {
AbstractNode answer = null;
if (input instanceof AbstractNode) {
return (AbstractNode) input;
} else if (input instanceof AbstractNodeFacade) {
AbstractNodeFacade facade = (AbstractNodeFacade) input;
answer = facade.getAbstractNode();
} else if (input instanceof ContainerShapeEditPart) {
ContainerShapeEditPart editPart = (ContainerShapeEditPart) input;
PictogramElement element = editPart.getPictogramElement();
if (Activator.getDiagramEditor() != null) {
if (element != null && element instanceof Diagram) {