This isn't a problem in this patch, as it's a copy of existing code, but the idiom of "if (x.hasDefined(AD) { AD.resolveModelAttribute(...) } is wrong when the AD has a default value or doesn't allow null.

All the SaslPolicyResource ADs declare a default value of "true" but tracing the use of this one at least, it seems the default behavior is "false". So it looks like either the ADs are wrong or the use of this if (x.hasDefined()) idiom is preventing the propagation of an intended value into the remoting layer. I expect the ADs are wrong.

This isn't a reason to not merge this patch though; it's a pre-existing problem.

https://issues.jboss.org/browse/WFLY-1677