[WFLY-1284] use correct factory API method