public String createNewId() {
        return String.valueOf(id.incrementAndGet());
    }
unique id generator for elements inside a given siddhi app
modules/siddhi-core/src/main/java/io/siddhi/core/util/IdGenerator.java