dealing with the same question, I discovered the Project "Profile Cloner" (https://github.com/tfonteyn/profilecloner). While currently evaluating Wildfy as an application server platform, I just started to play around with it.
It seems promising to me, but need further development. It's seems to be able to dump the profile section, but one will want to dump other sections, too. I already fixed a bug concerning quoting of the value data and send a pull request (with no feeback, yet).
I'm not acting as a Java Developer but a Unix&Java System Engineer. It will be great if we may work together to enhance the tool.