@Override public void prepare(@SuppressWarnings("rawtypes") Map conf, TopologyContext context, OutputCollector collector) { this.collector = collector; Configuration configuration = new Configuration(); setupEventTypes(context, configuration); this.esperSink = EPServiceProviderManager.getProvider(this.toString(), configuration); this.esperSink.initialize(); this.runtime = esperSink.getEPRuntime(); this.admin = esperSink.getEPAdministrator(); for (String stmt : statements) { EPStatement statement = admin.createEPL(stmt); statement.addListener(this); } }