if (connectionConfig == null) {
connectionConfig = BeanDefinitionBuilder.genericBeanDefinition(ConnectionConfig.class);
}
setIfPresent(element, "ldapUrl", connectionConfig);
connectionConfig.addPropertyValue("useStartTLS", element.getAttribute("useStartTLS"));
<BUG>connectionConfig.addPropertyValue("useSSL", element.getAttribute("useSSL"));
connectionConfig.addPropertyValue("connectTimeout", element.getAttribute("connectTimeout"));
</BUG>
if (element.hasAttribute("trustCertificates")) {
final BeanDefinitionBuilder credentialConfig = BeanDefinitionBuilder.genericBeanDefinition(

if (connectionConfig == null) {
connectionConfig = BeanDefinitionBuilder.genericBeanDefinition(ConnectionConfig.class);
}
setIfPresent(element, "ldapUrl", connectionConfig);
connectionConfig.addPropertyValue("useStartTLS", element.getAttribute("useStartTLS"));
connectionConfig.addPropertyValue("useSSL", element.getAttribute("useSSL"));
final BeanDefinitionBuilder connectTimeout = BeanDefinitionBuilder.rootBeanDefinition(
AbstractAuthenticatorBeanDefinitionParser.class,
"parseDuration");
connectTimeout.addConstructorArgValue(element.getAttribute("connectTimeout"));
connectionConfig.addPropertyValue("connectTimeout", connectTimeout.getBeanDefinition());
if (element.hasAttribute("trustCertificates")) {
final BeanDefinitionBuilder credentialConfig = BeanDefinitionBuilder.genericBeanDefinition(
