split into REST facade and Drools delegate