throw new UnsupportedOperationException("Unknown option " + option);
}
public static MultiValueKnowledgeSessionOption adaptOption(MultiValueKieSessionOption option) {
if (option instanceof WorkItemHandlerOption) {
WorkItemHandlerOption kieOption = (WorkItemHandlerOption)option;
return org.drools.runtime.conf.WorkItemHandlerOption.get(kieOption.getName(),
new WorkItemHandlerKieAdapter(kieOption.getHandler()));
}
throw new UnsupportedOperationException("Unknown option " + option);
}