Source:
<code>private boolean applyRemoteDomainModel(final List<ModelNode> bootOperations, final HostInfo hostInfo) { try { HostControllerLogger.ROOT_LOGGER.debug("Applying domain level boot operations provided by master"); SyncModelParameters parameters = new SyncModelParameters(domainController, ignoredDomainResourceRegistry, hostControllerEnvironment, extensionRegistry, operationExecutor, true, serverProxies, remoteFileRepository, contentRepository); final SyncDomainModelOperationHandler handler = new SyncDomainModelOperationHandler(hostInfo, parameters); final ModelNode operation = APPLY_DOMAIN_MODEL.clone(); operation.get(DOMAIN_MODEL).set(bootOperations); final ModelNode result = operationExecutor.execute(OperationBuilder.create(operation).build(), OperationMessageHandler.DISCARD, ModelController.OperationTransactionControl.COMMIT, handler); final String outcome = result.get(OUTCOME).asString(); final boolean success = SUCCESS.equals(outcome); if (result.has(RESPONSE_HEADERS)) { final ModelNode headers = result.get(RESPONSE_HEADERS); <START> if (headers.has(OPERATION_REQUIRES_RELOAD) && headers.get(OPERATION_REQUIRES_RELOAD).asBoolean()) { <END> HostControllerLogger.ROOT_LOGGER.domainModelAppliedButReloadIsRequired(); } if (headers.has(OPERATION_REQUIRES_RESTART) && headers.get(OPERATION_REQUIRES_RESTART).asBoolean()) { HostControllerLogger.ROOT_LOGGER.domainModelAppliedButRestartIsRequired(); } } if (!success) { ModelNode failureDesc = result.hasDefined(FAILURE_DESCRIPTION) ? result.get(FAILURE_DESCRIPTION) : new ModelNode(); HostControllerLogger.ROOT_LOGGER.failedToApplyDomainConfig(outcome, failureDesc); return false; } else { return true; } } catch (Exception e) { HostControllerLogger.ROOT_LOGGER.failedToApplyDomainConfig(e); return false; } }</code><technical_language>is generally .hasDefined() is a value. .has() tells is a key there, defined. is important this case though, this is part of DC contract</technical_language>

Target:
private boolean applyRemoteDomainModel(final List<ModelNode> bootOperations, final HostInfo hostInfo) { try { HostControllerLogger.ROOT_LOGGER.debug("Applying domain level boot operations provided by master"); SyncModelParameters parameters = new SyncModelParameters(domainController, ignoredDomainResourceRegistry, hostControllerEnvironment, extensionRegistry, operationExecutor, true, serverProxies, remoteFileRepository, contentRepository); final SyncDomainModelOperationHandler handler = new SyncDomainModelOperationHandler(hostInfo, parameters); final ModelNode operation = APPLY_DOMAIN_MODEL.clone(); operation.get(DOMAIN_MODEL).set(bootOperations); final ModelNode result = operationExecutor.execute(OperationBuilder.create(operation).build(), OperationMessageHandler.DISCARD, ModelController.OperationTransactionControl.COMMIT, handler); final String outcome = result.get(OUTCOME).asString(); final boolean success = SUCCESS.equals(outcome); if (result.has(RESPONSE_HEADERS)) { final ModelNode headers = result.get(RESPONSE_HEADERS); if (headers.hasDefined(OPERATION_REQUIRES_RELOAD) && headers.get(OPERATION_REQUIRES_RELOAD).asBoolean()) { HostControllerLogger.ROOT_LOGGER.domainModelAppliedButReloadIsRequired(); } if (headers.hasDefined(OPERATION_REQUIRES_RESTART) && headers.get(OPERATION_REQUIRES_RESTART).asBoolean()) { HostControllerLogger.ROOT_LOGGER.domainModelAppliedButRestartIsRequired(); } } if (!success) { ModelNode failureDesc = result.hasDefined(FAILURE_DESCRIPTION) ? result.get(FAILURE_DESCRIPTION) : new ModelNode(); HostControllerLogger.ROOT_LOGGER.failedToApplyDomainConfig(outcome, failureDesc); return false; } else { return true; } } catch (Exception e) { HostControllerLogger.ROOT_LOGGER.failedToApplyDomainConfig(e); return false; } }