private HashMap poolMap;
public Connection get(int protocol, String endpoint, ObjectRef objectRef) {
//System.out.println("ConnectionPool.get(): protocol: " + protocol + ", endpoint: " + endpoint + ", objectRef: " + objectRef);
InstancePool pool = getInstancePool(protocol, endpoint);
System.out.println("ConnectionPool.get(): pool: " + pool);
Connection conn = (Connection) pool.get();
if (conn == null) {
conn = newConnection(protocol, endpoint, objectRef, pool);
}
return conn;