@Override
public void configure() throws Exception {
final DataFormat bindy = new BindyCsvDataFormat("org.camelcookbook.transformation.csv.model");
final DataFormat jaxb = new JaxbDataFormat("org.camelcookbook.transformation.myschema");
final XmlJsonDataFormat xmlJsonFormat = new XmlJsonDataFormat();
xmlJsonFormat.setRootName("bookstore");
xmlJsonFormat.setElementName("book");
xmlJsonFormat.setExpandableProperties(Arrays.asList("author", "author"));
from("direct:start")
.choice()
.when(header(Exchange.FILE_NAME).endsWith(".csv"))
.unmarshal(bindy)