How to use setRedirectClassNameForKey in Query

setRedirectClassNameForKey(“${key}”)