public static void setPathReference(Element element, ParserContext parserContext,
			BeanDefinitionBuilder builder, String attributeName, String defaultPath) {
		String attribute = element.getAttribute(attributeName);
		if (!StringUtils.hasText(attribute)) {
			attribute = defaultPath;
		}
		BeanDefinitionBuilder pathBuilder = BeanDefinitionBuilder.genericBeanDefinition(Path.class);
		pathBuilder.addConstructorArgValue(attribute);
		AbstractBeanDefinition beanDef = pathBuilder.getBeanDefinition();
		String beanName = BeanDefinitionReaderUtils.generateBeanName(beanDef, parserContext.getRegistry());
		parserContext.registerBeanComponent(new BeanComponentDefinition(beanDef, beanName));
		builder.addPropertyReference(Conventions.attributeNameToPropertyName(attributeName), beanName);
	}
Sets the path reference. Creates new hdfs {@code Path} as a spring bean order to play nice with property
placeholder and expressions.

@param element the element
@param parserContext the parser context
@param builder the builder
@param attributeName the attribute name
@param defaultPath the default path
spring-xd-hadoop/src/main/java/org/springframework/xd/integration/hadoop/config/IntegrationHadoopNamespaceUtils.java