public MavenToken getToken() throws Throwable {
    if (myExceptionRef.get() != null) {
      throw myExceptionRef.get();
    }
    if (myRef.get() == null) {
      throw new IllegalStateException("Didn't receive token");
    }
    return new MavenToken(myRef.get());
  }
public MavenToken getToken()