@Override
	protected AbstractBeanDefinition doParse(Element element, ParserContext parserContext, String channelName) {

		BeanDefinitionBuilder builder =
				BeanDefinitionBuilder.genericBeanDefinition(SyslogInboundChannelAdapterConfiguration.class);
		IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "host", "host");
		IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "port", "port");

		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "channel", "outputChannel");
		IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "error-channel", "errorChannel");

		return builder.getBeanDefinition();
	}
@author Jon Brisbin
@author Stephane Maldini
extensions/spring-xd-extension-reactor/src/main/java/org/springframework/xd/integration/reactor/config/SyslogInboundChannelAdapterParser.java