}
int maxInstance = config.maxInstances();
if (maxInstance == 0) {
maxInstance = this.maxInstances;
}
configuration.addBeginAction(methodName, maxIdle, config.maxIdleTime(), maxInstance, config.transactional());
} else {
configuration.addBeginAction(methodName, this.maxIdleTimeMillis, "", this.maxInstances, false);
}
}