@Override
    public SocketAddress getRemoteSocketAddress() {
        try {
            return ((SocketChannel) selectionKey.channel()).socket()
                    .getRemoteSocketAddress();
        } catch (NullPointerException e) {
            return null;
        }
    }
@ Override public SocketAddress getRemoteSocketAddress ( ) { try { return ( ( SocketChannel ) selectionKey . channel ( ) ) . socket ( ) . getRemoteSocketAddress ( ) ; } catch ( NullPointerException e ) { return null ; } }
{@inheritDoc}