// kick the tires and light the fires
  public void startCEPEngine() throws IOException {
    // so, this creation of the cep engine needs to move
    cepEngine = new DefaultCEPEngine();

    // and a query
    cepStatement = new CEPNamedStatement(cepEngine.getEPAdministrator(), queryName, query);

    // and a listener
    CEPNamedStatementListener cepStatementListener =
        new CEPNamedStatementListener(queryID, cepEngine);
    cepStatement.addListener(cepStatementListener);
  }
 public boolean isDestroyed() {
   return cepStatement.isDestroyed();
 }
 public boolean isStopped() {
   return cepStatement.isRunning();
 }
 public void start() {
   if (cepStatement.isStopped()) {
     cepStatement.start();
   }
 }
 public void kill() {
   cepStatement.kill();
 }
 public void stop() {
   if (cepStatement.isRunning()) {
     cepStatement.stop();
   }
 }