code: public void returnConnectionListener(ConnectionListener cl, boolean kill) throws ResourceException
     {
        log.tracef("returnConnectionListener(%s, %s)", cl, kill);
  
        ManagedConnectionPool mcp = pools.get(cl.getCredential());
  
        if (!kill)
           kill = cl.getState() == DESTROY;
  
        if (Tracer.isEnabled())
           Tracer.returnConnectionListener(poolConfiguration.getId(), cl.getManagedConnectionPool(),
                                           cl, kill, false,
                                           Tracer.isRecordCallstacks() ? new Throwable("CALLSTACK") : null);
  
        mcp.returnConnectionListener(cl, kill);
     }
docs: {@inheritDoc}