ServletContext servletContext) {
if (!deploymentInfo.getAuthenticationMechanisms().containsKey("SPNEGO")) {
log.debug("Registering dummy SPNEGO authentication mechanism");
deploymentInfo.addAuthenticationMechanism("SPNEGO",
new ImmediateAuthenticationMechanismFactory(
new DummyAuthenticationMechanism()));
}
String contextPath = servletContext.getContextPath();
// workaround for https://issues.jboss.org/browse/WFLY-3744