if (HighAvailabilityProvider.INSTANCE.isHaEnvironmentConfigured()) {
nonceMgr = new HANonceManager(maxNonceAge);
} else {
if (url == null) {
nonceMgr = new DefaultNonceManager();
}
}
//is this check still needed ?
if (nonceMgr == null) {
nonceMgr = new DefaultNonceManager();
}
nonceMgr.setMaxNonceAge(maxNonceAge);
if (endpoint != null) {