code: public boolean isTerminated() {
  		final Thread executingThread = this.environment.getExecutingThread();
  		if (executingThread.getState() == Thread.State.TERMINATED) {
  			return true;
  		}
  
  		return false;
  	}
docs: Checks if the state of the thread which is associated with this task is <code>TERMINATED</code>.
  
  @return <code>true</code> if the state of this thread which is associated with this task is
  <code>TERMINATED</code>, <code>false</code> otherwise