ldapContextFactory.setSystemUsername(connectionDto.getSystemUsername());
ldapContextFactory.setUrl(new LdapURL(connectionDto.getProtocol(), connectionDto.getHost(), connectionDto
.getPort(), connectionDto.getSearchBase()).toString());
ldapContextFactory.setAuthentication(connectionDto.getAuthScheme());
final TrustStoreKey key = ldapTrustStoreKey(ldapServerId == null ? "<unknown>" : ldapServerId);
if ("ldaps".equals(connectionDto.getProtocol())) {
final SSLContext sslContext = trustStore.getSSLContextFor(key);
if (sslContext != null) {
getLogger().debug(
"{} is using a Nexus SSL Trust Store for accessing {}",