public void destroyConnection() {
    getConnectionLifeCycleLock().writeLock().lock();
    try {
      Connection con = connection;
      if (con != null) {
        if (!con.isDestroyed()) {
          con.destroy();
          sender.getProxy().returnConnection(con);
        }

        // Reset the connection so the next time through a new one will be
        // obtained
        connection = null;
        sender.setServerLocation(null);
      }
    } finally {
      getConnectionLifeCycleLock().writeLock().unlock();
    }
  }
Acquires or adds a new <code>Connection</code> to the corresponding <code>Gateway</code>

@return the <code>Connection</code>
geode-wan/src/main/java/org/apache/geode/cache/wan/internal/GatewaySenderEventRemoteDispatcher.java