@Override
            public void receive(long timestamp, Event[] inEvents, Event[] removeEvents) {
                EventPrinter.print(timestamp, inEvents, removeEvents);
            }
The sample demonstrate how to use custom UDFs in Siddhi within another Java program.
modules/siddhi-samples/quick-start-samples/src/main/java/io/siddhi/sample/ExtensionSample.java