NIOServerSocket socket = (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD();
try { return ((ServerSocketChannelImpl) ch).getVMChannel().getState().getNativeFD(); } catch (IOException ioe) { throw new IllegalStateException(ioe); }
  public int getNativeFD()  {    NIOServerSocket socket =         (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket();    return socket.getPlainSocketImpl().getNativeFD();  }