public Object getConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
     throws ResourceException {
   OdeConnectionImpl conn = new OdeConnectionImpl(subject, connectionRequestInfo);
   _connections.add(conn);
   _activeConnection = conn;
   conn.associate(this);
   return Proxy.newProxyInstance(getClass().getClassLoader(), _connectionClasses, conn);
 }
 public void associateConnection(Object o) throws ResourceException {
   if (_activeConnection != null) {
     _activeConnection.associate(null);
   }
   _activeConnection = null;
   _activeConnection = (OdeConnectionImpl) o;
   _activeConnection.associate(this);
 }
 public void cleanup() throws ResourceException {
   if (_activeConnection != null) {
     _activeConnection.associate(null);
   }
   _activeConnection = null;
   _connections.clear();
 }