WFLY-3779 IllegalAccessException when a built-in normal-scoped bean defines a package-private no-arg constructor

This does not take transitive dependencies into account. A much simpler method would be to simply attempt to load a class from each required module, and if they both work then it has the dependencies.