Cyclophilin and trigger factor from Bacillus subtilis catalyze in vitro protein folding and are necessary for viability under starvation conditions.