class SiddhiHandler implements RestListener, EventHandler<MapEvent> {

    @Override
    public List<Map<String, Object>> list() throws RestException {
        List<Map<String, Object>> listQueries = new ArrayList<>();

        for (SiddhiPlan siddhiPlan : siddhiPlans.values()) {
            listQueries.add(siddhiPlan.toMap());
        }

        return listQueries;
    }

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

}