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