public static Builder fromModuleDescriptor(ModuleDescriptor descriptor) {
			Builder builder = new Builder();
			builder.setModuleName(descriptor.getModuleName());
			builder.setModuleLabel(descriptor.getModuleLabel());
			builder.setGroup(descriptor.getGroup());
			builder.setSourceChannelName(descriptor.getSourceChannelName());
			builder.setSinkChannelName(descriptor.getSinkChannelName());
			builder.setIndex(descriptor.getIndex());
			builder.setType(descriptor.getType());
			builder.setModuleDefinition(descriptor.getModuleDefinition());
			builder.addParameters(descriptor.getParameters());
			builder.addChildren(descriptor.getChildren());

			return builder;
		}
Create a {@code Builder} object pre-populated with the configuration
for the provided {@link org.springframework.xd.module.ModuleDescriptor}.

@param descriptor module descriptor
@return pre-populated builder object
spring-xd-module/src/main/java/org/springframework/xd/module/ModuleDescriptor.java