} else if (object instanceof RoutesDefinition) { justRoutes = true; sc = new CamelContextFactoryBean(); sc.setRoutes(((RoutesDefinition) object).getRoutes()); } else if (object instanceof CamelRouteContextFactoryBean) { routesContext = true; sc = new CamelContextFactoryBean(); sc.setRoutes(((CamelRouteContextFactoryBean) object).getRoutes()); } else if (object instanceof org.apache.camel.blueprint.CamelRouteContextFactoryBean) { routesContext = true; sc = new CamelContextFactoryBean(); sc.setRoutes(((org.apache.camel.blueprint.CamelRouteContextFactoryBean) object).getRoutes()); } else { LOG.warn("Unmarshalled not a CamelContext: {}", object); sc = new CamelContextFactoryBean(); LOG.info(message + " does not contain a CamelContext. Maybe the XML namespace is not spring: '{}' or blueprint: '{}'?", springNS, blueprintNS); return new XmlModel(new CamelContextFactoryBean(), doc, beans, null, CamelNamespaces.springNS, false, false);
} else if (object instanceof RoutesDefinition) { justRoutes = true; sc = new CamelContextFactoryBean(); sc.setRoutes(((RoutesDefinition) object).getRoutes()); } else if (object instanceof CamelRouteContextFactoryBean) { routesContext = true; sc = new CamelContextFactoryBean(); sc.setRoutes(((CamelRouteContextFactoryBean) object).getRoutes()); } else if (object instanceof org.apache.camel.blueprint.CamelRouteContextFactoryBean) { routesContext = true; sc = new CamelContextFactoryBean(); sc.setRoutes(((org.apache.camel.blueprint.CamelRouteContextFactoryBean) object).getRoutes()); } else { LOG.warn("Unmarshalled not a CamelContext: {}", object); sc = new CamelContextFactoryBean(); LOG.info(message + " does not contain a CamelContext. Maybe the XML namespace is not spring: '{}' or blueprint: '{}'?", springNS, blueprintNS); return new XmlModel(new CamelContextFactoryBean(), doc, beans, null, CamelNamespaces.springNS, false, false);