WFLY-3102 EJB in war should inherit the default security domain
[WFLY-3477] Adding a new test to the existing test cases to cover the scenario where the context referrs to another server.
[WFLY-3477] Add support for specifying if the original connection is preferred or not for group to principal based searches.

Update the related test case to make use of this.
[WFLY-3477] Spelling correction identified during pull request review.
[WFLY-3492], Addtionally check jsse keystore paramter type and length.