int nodeCount = annotation.nodes();
BeanDefinitionBuilder builder = BeanDefinitionBuilder
.genericBeanDefinition(HadoopClusterDelegatingFactoryBean.class);
builder.addPropertyValue("id", id);
builder.addPropertyValue("nodes", nodeCount);
context.registerBeanDefinition(clusterName, builder.getBeanDefinition());
builder = BeanDefinitionBuilder
.genericBeanDefinition(ConfigurationDelegatingFactoryBean.class);
builder.addPropertyReference("cluster", clusterName);