WFLY-1327 WFLY-901

WFLY-1327 Make it easier to use AttributeDefinition in a runtime-only write-attribute handler

WFLY-901 use WFLY-1327 solution in fix for bug where write-attribute handler was using the wrong parameter name

Supersedes #4378.