public LifecycleStoreCreator addEmptyStartHandler() {
   TestLifecycleHandler h = new TestLifecycleHandler(LifecycleHandlerType.START);
   LifecycleHandler hh = createProxy(h, LifecycleHandlerType.START.getTypeClass());
   builder.setHandler(hh, LifecycleHandlerType.START);
   addToMapping(LifecycleHandlerType.START, h);
   return this;
 }
 public LifecycleStoreCreator addDefaultStartDetector(int i) {
   TestLifecycleHandler h = new TestLifecycleHandler(DetectorType.START, i, false);
   StartDetector hh = createProxy(h, StartDetector.class);
   builder.setStartDetector(hh);
   addToMapping(DetectorType.START, h);
   return this;
 }
 public LifecycleStoreCreator addLifecycleHandler(
     LifecycleHandlerType type, boolean throwsException) {
   TestLifecycleHandler h = new TestLifecycleHandler(type, throwsException);
   LifecycleHandler hh = createProxy(h, type.getTypeClass());
   builder.setHandler(hh, type);
   addToMapping(type, h);
   return this;
 }
 public LifecycleStore build() {
   return builder.build();
 }