How Berlin plans to avoid a “River of Fire” moment