public CamelContext getCamelContext() {
return camelContext;
}
public void start() throws Exception {
final SmooksFactory smooksFactory = (SmooksFactory) camelContext.getRegistry().lookup(SmooksFactory.class.getName());
if (smooksFactory != null) {
smooks = smooksFactory.createInstance(smooksConfig);
} else {
smooks = new Smooks(smooksConfig);
}
}