Source:
<code>private void setRuntimeArtifactsSyncGatewayConfig (OMElement omElement){ OMElement enableElement = omElement .getFirstChildWithName(new QName(APIConstants.GatewayArtifactSynchronizer.ENABLE_CONFIG)); if (enableElement != null) { gatewayArtifactSynchronizerProperties.setRetrieveFromStorageEnabled( JavaUtils.isTrueExplicitly(enableElement.getText())); } else { log.debug("Retrieve from storage is not set. Set to default false"); } OMElement retrieverElement = omElement.getFirstChildWithName( new QName(APIConstants.GatewayArtifactSynchronizer.RETRIEVER_CONFIG)); if (retrieverElement != null) { String artifactRetriever = retrieverElement.getText(); gatewayArtifactSynchronizerProperties.setRetrieverName(artifactRetriever); } else { log.debug("Artifact retriever Element is not set. Set to default DB Retriever"); } OMElement retryDurationElement = omElement.getFirstChildWithName( new QName(APIConstants.GatewayArtifactSynchronizer.RETRY_DUARTION)); if (retrieverElement != null) { long retryDuration = Long.valueOf(retryDurationElement.getText()); gatewayArtifactSynchronizerProperties.setRetryDuartion(retryDuration); } else { log.debug("Retry Duration Element is not set. Set to default duaration"); } <START> OMElement startupConfigElement = omElement.getFirstChildWithName( <END> new QName(APIConstants.GatewayArtifactSynchronizer.STARTUP_CONFIG)); if (startupConfigElement!= null) { String serverStartup = startupConfigElement.getText(); gatewayArtifactSynchronizerProperties.setGatewayStartup(serverStartup); } else { log.debug("Retry Duration Element is not set. Set to default duaration"); } OMElement gatewayLabelElement = omElement .getFirstChildWithName(new QName(APIConstants.GatewayArtifactSynchronizer.GATEWAY_LABELS_CONFIG)); if (gatewayLabelElement != null) { Iterator labelsIterator = gatewayLabelElement .getChildrenWithLocalName(APIConstants.GatewayArtifactSynchronizer.LABEL_CONFIG); while (labelsIterator.hasNext()) { OMElement labelElement = (OMElement) labelsIterator.next(); if (labelElement != null) { gatewayArtifactSynchronizerProperties.getGatewayLabels().add(labelElement.getText()); } } } }</code><technical_language>startupConfigElement -> Retrieval Mode ? @pubudu538</technical_language>

Target:
private void setRuntimeArtifactsSyncGatewayConfig (OMElement omElement){ OMElement enableElement = omElement .getFirstChildWithName(new QName(APIConstants.GatewayArtifactSynchronizer.ENABLE_CONFIG)); if (enableElement != null) { gatewayArtifactSynchronizerProperties.setRetrieveFromStorageEnabled( JavaUtils.isTrueExplicitly(enableElement.getText())); } else { log.debug("Retrieve from storage is not set. Set to default false"); } OMElement retrieverElement = omElement.getFirstChildWithName( new QName(APIConstants.GatewayArtifactSynchronizer.RETRIEVER_CONFIG)); if (retrieverElement != null) { String artifactRetriever = retrieverElement.getText(); gatewayArtifactSynchronizerProperties.setRetrieverName(artifactRetriever); } else { log.debug("Artifact retriever Element is not set. Set to default DB Retriever"); } OMElement retryDurationElement = omElement.getFirstChildWithName( new QName(APIConstants.GatewayArtifactSynchronizer.RETRY_DUARTION)); if (retrieverElement != null) { long retryDuration = Long.valueOf(retryDurationElement.getText()); gatewayArtifactSynchronizerProperties.setRetryDuartion(retryDuration); } else { log.debug("Retry Duration Element is not set. Set to default duaration"); } OMElement dataRetrievalModeElement = omElement.getFirstChildWithName( new QName(APIConstants.GatewayArtifactSynchronizer.DATA_RETRIEVAL_MODE)); if (dataRetrievalModeElement!= null) { String dataRetrievalMode= dataRetrievalModeElement.getText(); gatewayArtifactSynchronizerProperties.setGatewayStartup(dataRetrievalMode); } else { log.debug("Gateway Startup mode is not set. Set to Sync Mode"); } OMElement gatewayLabelElement = omElement .getFirstChildWithName(new QName(APIConstants.GatewayArtifactSynchronizer.GATEWAY_LABELS_CONFIG)); if (gatewayLabelElement != null) { Iterator labelsIterator = gatewayLabelElement .getChildrenWithLocalName(APIConstants.GatewayArtifactSynchronizer.LABEL_CONFIG); while (labelsIterator.hasNext()) { OMElement labelElement = (OMElement) labelsIterator.next(); if (labelElement != null) { gatewayArtifactSynchronizerProperties.getGatewayLabels().add(labelElement.getText()); } } } }