Cooperation of the prolyl isomerase and chaperone activities of the protein folding catalyst SlyD.