[WFLY-3235]; support legacy factoryClass and factoryMethod attributes.
Merge pull request #6145 from alesj/WFLY-3235

[WFLY-3235]; support legacy factoryClass and factoryMethod attributes.