Source:
<code>static Config updateRuntime(final OperationContext context, final ModelNode model, final LdapConnectionManagerService connectionManagerService) throws OperationFailedException { String initialContextFactory = INITIAL_CONTEXT_FACTORY.resolveModelAttribute(context, model).asString(); String url = URL.resolveModelAttribute(context, model).asString(); ModelNode searchDnNode = SEARCH_DN.resolveModelAttribute(context, model); String searchDn = searchDnNode.isDefined() ? searchDnNode.asString() : null; ModelNode searchCredentialNode = SEARCH_CREDENTIAL.resolveModelAttribute(context, model); String searchCredential = searchCredentialNode.isDefined() ? searchCredentialNode.asString() : null; ReferralHandling referralHandling = ReferralHandling.valueOf(REFERRALS.resolveModelAttribute(context, model).asString()); final Set<URI> handlesReferralsForSet; ModelNode handlesReferralsFor = HANDLES_REFERRALS_FOR.resolveModelAttribute(context, model); if (handlesReferralsFor.isDefined()) { List<ModelNode> list = handlesReferralsFor.asList(); handlesReferralsForSet = new HashSet<URI>(list.size()); for (ModelNode current : list) { try { handlesReferralsForSet.add(new URI(current.asString())); } catch (URISyntaxException e) { throw new OperationFailedException(e); } } } else { handlesReferralsForSet = Collections.emptySet(); } final boolean alwaysSendClientCert; <START> if (model.has(ALWAYS_SEND_CLIENT_CERT.getName()) && model.get(ALWAYS_SEND_CLIENT_CERT.getName()).isDefined()) { <END> alwaysSendClientCert = ALWAYS_SEND_CLIENT_CERT.resolveModelAttribute(context, model).asBoolean(); } else { alwaysSendClientCert = Boolean.valueOf(WildFlySecurityManager .getPropertyPrivileged("jboss.as.management.outbound.ldap.alwaysSendClientCert", "false")); } return connectionManagerService.setConfiguration(initialContextFactory, url, searchDn, searchCredential, referralHandling, handlesReferralsForSet, alwaysSendClientCert); }</code><technical_language>if (model.hasDefined(ALWAYS_SEND_CLIENT_CERT.getName())) {</technical_language>

Target:
static Config updateRuntime(final OperationContext context, final ModelNode model, final LdapConnectionManagerService connectionManagerService) throws OperationFailedException { String initialContextFactory = INITIAL_CONTEXT_FACTORY.resolveModelAttribute(context, model).asString(); String url = URL.resolveModelAttribute(context, model).asString(); ModelNode searchDnNode = SEARCH_DN.resolveModelAttribute(context, model); String searchDn = searchDnNode.isDefined() ? searchDnNode.asString() : null; ModelNode searchCredentialNode = SEARCH_CREDENTIAL.resolveModelAttribute(context, model); String searchCredential = searchCredentialNode.isDefined() ? searchCredentialNode.asString() : null; ReferralHandling referralHandling = ReferralHandling.valueOf(REFERRALS.resolveModelAttribute(context, model).asString()); final Set<URI> handlesReferralsForSet; ModelNode handlesReferralsFor = HANDLES_REFERRALS_FOR.resolveModelAttribute(context, model); if (handlesReferralsFor.isDefined()) { List<ModelNode> list = handlesReferralsFor.asList(); handlesReferralsForSet = new HashSet<URI>(list.size()); for (ModelNode current : list) { try { handlesReferralsForSet.add(new URI(current.asString())); } catch (URISyntaxException e) { throw new OperationFailedException(e); } } } else { handlesReferralsForSet = Collections.emptySet(); } final boolean alwaysSendClientCert; if (model.hasDefined(ALWAYS_SEND_CLIENT_CERT.getName())) { alwaysSendClientCert = ALWAYS_SEND_CLIENT_CERT.resolveModelAttribute(context, model).asBoolean(); } else { alwaysSendClientCert = Boolean.valueOf(WildFlySecurityManager .getPropertyPrivileged("jboss.as.management.outbound.ldap.alwaysSendClientCert", "false")); } return connectionManagerService.setConfiguration(initialContextFactory, url, searchDn, searchCredential, referralHandling, handlesReferralsForSet, alwaysSendClientCert); }