*/
public void registerAdapter(EPServiceProvider epService)
{
EPServiceProviderSPI spi = (EPServiceProviderSPI) epService;
EventType eventType = spi.getEventAdapterService().getExistsTypeByName(eventTypeName);
FilterValueSet fvs = new FilterSpecCompiled(eventType, null, new LinkedList<FilterSpecParam>(), null).getValueSet(null, null, null);
String name = "subscription:" + subscriptionName;
StatementMetricHandle metricsHandle = spi.getMetricReportingService().getStatementHandle(name, name);
EPStatementHandle statementHandle = new EPStatementHandle(name, name, name, name, false, metricsHandle, 0, false);
EPStatementAgentInstanceHandle agentHandle = new EPStatementAgentInstanceHandle(statementHandle, new StatementAgentInstanceRWLockImpl(false), -1, new StatementAgentInstanceFilterVersion());