Throw the exception rather than just creating it. Also fix spelling of the method name.
Merge pull request #5616 from jamezp/jboss-all-fix

Throw the exception rather than just creating it.