@Override
  protected void doActivate() throws Exception {
    // Initialize container.
    IManagedContainer container = getContainer();

    // Initialize store.
    IStore store = createStore(container);

    // Initialize properties.
    Map<String, String> properties = new HashMap<String, String>();
    properties.put(IRepository.Props.OVERRIDE_UUID, "");
    initProperties(container, properties);

    repository = new EmbeddedRepository(this);
    ((InternalRepository) repository).setContainer(container);
    ((InternalRepository) repository).setName(repositoryName);
    ((InternalRepository) repository).setStore((InternalStore) store);
    ((InternalRepository) repository).setProperties(properties);

    activateRepository(repository);

    repository.addListener(
        new LifecycleEventAdapter() {
          @Override
          protected void onDeactivated(ILifecycle lifecycle) {
            CDOEmbeddedRepositoryConfig.this.deactivate();
          }
        });
  }
 public final CDONet4jSession openClientSession() {
   return repository.openClientSession();
 }