if (securityContext.isContinue() || token.isNtlmPost()) {
throw new AuthenticationInProgressException();
}
final IWindowsIdentity windowsIdentity = securityContext.getIdentity();
securityContext.dispose();
LOGGER.debug("logged in user: {} ({})", windowsIdentity.getFqn(), windowsIdentity.getSidString());
final Principal principal = new WindowsPrincipal(windowsIdentity);
token.setPrincipal(principal);