Incorporate and adjust https://github.com/a2aproject/a2a-java/pull/229 so it works in WildFly
Incorporate and adjust a2aproject/a2a-java#229 so it works in WildFly