code: protected AssemblyResponse watchStatus() throws LocalOperationException, RequestException {
          AssemblyResponse response;
          do {
              response = getClient().getAssemblyByUrl(url);
              try {
                  Thread.sleep(1000);
              } catch (InterruptedException e) {
                  throw new LocalOperationException(e);
              }
          } while (!response.isFinished());
  
          setState(State.FINISHED);
          return response;
      }
docs: Runs intermediate check on the Assembly status until it is finished executing,
  then returns it as a response.
  
  @return {@link AssemblyResponse}
  @throws LocalOperationException if something goes wrong while running non-http operations.
  @throws RequestException if request to Transloadit server fails.