}
if (configurationBuilder instanceof HotRodServerConfigurationBuilder) { // FIXME: extend to all protocol servers once they support authn
HotRodServerConfigurationBuilder hotRodBuilder = (HotRodServerConfigurationBuilder) configurationBuilder;
if (serverContextName != null) {
hotRodBuilder.authentication().serverSubject(getServerSubject(serverContextName));
}
SecurityRealm authenticationRealm = authenticationSecurityRealm.getOptionalValue();
if (authenticationRealm != null) {
hotRodBuilder.authentication().serverAuthenticationProvider(new EndpointServerAuthenticationProvider(authenticationRealm));
}