if (impl == null) throw new SocketException( "Cannot initialize Socket implementation");
  public int getTrafficClass() throws SocketException  {    Object obj = impl.getOption(SocketOptions.IP_TOS);    if (obj instanceof Integer)      return ((Integer) obj).intValue ();    else      throw new SocketException ("Unexpected type");  }