throw new IllegalAccessError("Already connected");
throw new IllegalStateException ("Already connected");
  public void setAllowUserInteraction(boolean allowed)  {    if (connected)      throw new IllegalAccessError("Already connected");    allowUserInteraction = allowed;  }