docs: public static void setThreadInstance(Application application) {
  		if (instance == null) {
  			instance = new ThreadLocalApplication();
  		} else if (!(instance instanceof ThreadLocalApplication)) {
  			throw new IllegalStateException();
  		}
  		((ThreadLocalApplication) instance).setCurrentApplication(application);
  	}