if (connected) throw new IllegalStateException ("Already connected");
  public void addRequestProperty(String key, String value)  {    if (getRequestProperty (key) == null)      {        setRequestProperty (key, value);      }  }