// Create the channel adding it to the active channels
ForwardingSocketChannel channel = config.createForwardingSocketChannel(channelType,
hostToConnect, portToConnect, originatingHost,
originatingPort);
channel.bindSocket(socket);
return channel;
} catch (ForwardingConfigurationException fce) {
throw new InvalidChannelException(
"No valid forwarding configuration was available for the request");