There is a bug in documentation.

encodeXSS is in

weblogic.servlet.security.Utils