code: public ActiveTunnel[] getRemoteForwardingTunnels(String key)
  			throws IOException {
  
  		synchronized (incomingtunnels) {
  			if (incomingtunnels.containsKey(key)) {
  				Vector<ActiveTunnel> v = incomingtunnels.get(key);
  				ActiveTunnel[] t = new ActiveTunnel[v.size()];
  				v.copyInto(t);
  
  				return t;
  			}
  		}
  
  		if (!remoteforwardings.containsKey(key)) {
  			throw new IOException(key
  					+ " is not a valid remote forwarding configuration");
  		}
  
  		return new ActiveTunnel[] {};
  	}
docs: Get the active tunnels for a remote forwarding listener.
  
  @param key
  @return ActiveTunnel[]
  @throws IOException