@Override
public RouteContainer loadRoutes(File file) {
try {
RouteXml helper = createXmlHelper();
Activator.getLogger().debug("Loading file: " + file);
XmlModel model = helper.unmarshal(file);
if (model.getRouteDefinitionList().size()<1) noRoutesOnLoad = true;
return toContainer(model);
} catch (Exception e) {
Activator.getLogger().error("Failed to load Camel mode: " + e, e);
throw new RuntimeException(e);