try {
final TCPNIOTransport nioTransport = (TCPNIOTransport) transport;
nioTransport.selectorRegistrationHandler.completed(result);
final SelectionKeyHandler selectionKeyHandler =
nioTransport.getSelectionKeyHandler();
final SelectionKey acceptedConnectionKey =
result.getSelectionKey();
final TCPNIOConnection connection =
(TCPNIOConnection) selectionKeyHandler.getConnectionForKey(acceptedConnectionKey);
if (listener != null) {
listener.result(connection);
}