final ChannelContext openedChannelContext = new ChannelContext(connectionSession, channelSettings);
final SOAPVersion soapVersion = adapter.getEndpoint().getBinding().getSOAPVersion();
final Codec defaultCodec = adapter.getEndpoint().createCodec();
ChannelContext.configureCodec(openedChannelContext, soapVersion, defaultCodec);
connectionSession.registerChannel(openedChannelContext);
if (logger.isLoggable(Level.FINE)) {
logger.log(Level.FINE, MessagesMessages.WSTCP_1141_SOAPTCP_CHANNEL_OPEN(connectionSession.hashCode(), openedChannelContext.getChannelId(), targetWSURI));
}
return channelId;