public Connection getConnection() {
if (this.connection == null) {
DataBase selectedDatabase = null;
FixFlowConfig fixFlowConfig = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration()
.getFixFlowConfig();
for (DataBase dataBase : fixFlowConfig.getDataBaseConfig().getDataBase()) {
if (dataBase.getId().equals(this.dbId)) {
selectedDatabase = dataBase;
//ConnectionManagement.defaultDataBaseId = selectedDatabase.getId();
}
}