import java.util.Map;
import java.util.Properties;
import javolution.util.FastMap;
public class DBCPConnectionFactory implements ConnectionFactoryInterface {
public static final String module = DBCPConnectionFactory.class.getName();
<BUG>protected static Map dsCache = FastMap.newInstance();
</BUG>
public Connection getConnection(String helperName, Element jotmJdbcElement) throws SQLException, GenericEntityException {
<BUG>ManagedDataSource mds = (ManagedDataSource) dsCache.get(helperName);
if (mds != null) {</BUG>
return TransactionFactory.getCursorConnection(helperName, mds.getConnection());

import java.util.Map;
import java.util.Properties;
import javolution.util.FastMap;
public class DBCPConnectionFactory implements ConnectionFactoryInterface {
public static final String module = DBCPConnectionFactory.class.getName();
protected static Map<String, ManagedDataSource> dsCache = FastMap.newInstance();
public Connection getConnection(String helperName, Element jotmJdbcElement) throws SQLException, GenericEntityException {
ManagedDataSource mds = dsCache.get(helperName);
if (mds != null) {
return TransactionFactory.getCursorConnection(helperName, mds.getConnection());
