private boolean finalizeObstacleDuplication() {
		if (!(selectedComponent instanceof RectangularObstacle))
			throw new RuntimeException("The selected component is not an obstacle");
		if (!finalizeObstacleLocation((RectangularObstacle) selectedComponent)) {
			obstacles.remove((RectangularObstacle) selectedComponent);
			setSelectedComponent(null);
			repaint();
		}
		return true;
	}