protected synchronized void initialize() {
if (processEngine==null) {
String jbpmTestCfgType = System.getProperty("jbpm.test.cfg.type");
Configuration configuration = new Configuration(jbpmTestCfgType);
String jbpmTestCfgResource = System.getProperty("jbpm.test.cfg.resource");
if (jbpmTestCfgResource!=null) {
configuration.setResource(jbpmTestCfgResource);
}
processEngine = configuration.buildProcessEngine();
log.debug("using ProcessEngine "+System.identityHashCode(processEngine));
repositoryService = processEngine.get(RepositoryService.class);
executionService = processEngine.getExecutionService();