class SiddhiHandler implements RestListener, EventHandler<MapEvent> {

    @Override
    public void add(Map<String, Object> element) throws RestException {
        try {
            SiddhiPlan siddhiPlan = SiddhiPlan.fromMap(element);
            add(siddhiPlan);
        } catch (ExecutionPlanException e) {
            throw new RestInvalidException(e.getMessage(), e);
        }
    }

    public  SiddhiHandler(Sink eventReceiver);
    public  SiddhiHandler();

}