Merge pull request #665 from mattrpav/AMQ-8282

[AMQ-8282] Migrate from deprecated .newInstance() calls to .getConstr…