The metaplectic kernel for anisotropic groups