spring-integration-aws/src/main/java/org/springframework/integration/aws/sqs/config/SqsParserUtils.java
public static BeanDefinitionBuilder getSqsExecutorBuilder(
			final Element element, final ParserContext parserContext) {

		Assert.notNull(element, "The provided element must not be null.");
		Assert.notNull(parserContext,
				"The provided parserContext must not be null.");

		final BeanDefinitionBuilder sqsExecutorBuilder = BeanDefinitionBuilder
				.genericBeanDefinition(SqsExecutor.class);

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "queue-name");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "queue");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "aws-credentials-provider");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "receive-message-wait-timeout");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "region-id");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "prefetch-count");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "message-delay");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "maximum-message-size");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "message-retention-period");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "visibility-timeout");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "aws-client-configuration");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "message-marshaller");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "queue-url");

		return sqsExecutorBuilder;

	}
public static BeanDefinitionBuilder getSqsExecutorBuilder(
			final Element element, final ParserContext parserContext) {

		Assert.notNull(element, "The provided element must not be null.");
		Assert.notNull(parserContext,
				"The provided parserContext must not be null.");

		final BeanDefinitionBuilder sqsExecutorBuilder = BeanDefinitionBuilder
				.genericBeanDefinition(SqsExecutor.class);

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "queue-name");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "queue");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "aws-credentials-provider");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "receive-message-wait-timeout");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "region-id");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "prefetch-count");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "message-delay");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "maximum-message-size");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "message-retention-period");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "visibility-timeout");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "aws-client-configuration");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(
				sqsExecutorBuilder, element, "message-marshaller");

		IntegrationNamespaceUtils.setValueIfAttributeDefined(
				sqsExecutorBuilder, element, "queue-url");

		return sqsExecutorBuilder;

	}
Create a new {@link BeanDefinitionBuilder} for the class
{@link SqsExecutor}. Initialize the wrapped {@link SqsExecutor} with
common properties.

@param element
Must not be null
@param parserContext
Must not be null
@return The BeanDefinitionBuilder for the SqsExecutor