Structural and Functional Characterization of Partner Switching Regulating the Environmental Stress Response in Bacillus subtilis*