How the substrate D-glutamate drives the catalytic action of Bacillus subtilis glutamate racemase.