Self-organized bosonic domain walls