public void configure() {
errorHandler(new NoErrorHandlerBuilder());
from("cxfrs://bean://rsServer").process(new Processor() {
public void process(Exchange exchange) throws Exception {
// just throw the CustomException here
throw new CustomException("Here is the exception");
}
});
}
};
}