throw new IllegalAccessError("Already connected");
throw new IllegalStateException ("Already connected");
  public void setUseCaches(boolean usecaches)  {    if (connected)      throw new IllegalAccessError("Already connected");    useCaches = usecaches;  }