class SiddhiHandler implements RestListener, EventHandler<MapEvent> {

    @Override
    public synchronized void remove(String id) throws RestException {
        SiddhiPlan siddhiPlan = siddhiPlans.get(id);

        if (siddhiPlan != null) {
            siddhiPlan.stop();
            siddhiPlans.remove(id);
            save();

            log.info("Siddhi plan with the id {} has been removed", id);
            log.info("Current queries: {}", siddhiPlans.keySet());
        } else {
            throw new RestNotFoundException("Siddhi plan with id " + id + " is not present");
        }
    }

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

}