one-time-examples/bestellprozess-java-ee6/src/main/java/com/camunda/demo/outerspace/wjax/controller/performance/MyBatisExtendedSessionFactory.java
public void initFromProcessEngineConfiguration(ProcessEngineConfigurationImpl processEngineConfiguration, String resourceName) {
    this.resourceName = resourceName;

    setDataSource(processEngineConfiguration.getDataSource());

    initDataSource();
    initCommandContextFactory();
    initTransactionFactory();
    initTransactionContextFactory();
    initCommandExecutors();
    initIdentityProviderSessionFactory();
    initSqlSessionFactory();
    initSessionFactories();
  }
public void initFromProcessEngineConfiguration(ProcessEngineConfigurationImpl processEngineConfiguration, String resourceName) {
    this.resourceName = resourceName;

    setDataSource(processEngineConfiguration.getDataSource());

    initDataSource();
    initCommandContextFactory();
    initTransactionFactory();
    initTransactionContextFactory();
    initCommandExecutors();
    initIdentityProviderSessionFactory();
    initSqlSessionFactory();
    initSessionFactories();
  }
initialize the {@link ProcessEngineConfiguration} from an existing one,
just using the database settings and initialize the database / MyBatis
stuff.