Support rewriting in the realm