class ScriptContextImplementation implements InternalScriptContext {

  public void stopThisWorkerThread() throws InvalidContextException {

    if (m_threadContextLocator.get() != null) {
      throw new ShutdownException("Thread has been shut down");
    }
    else {
      throw new InvalidContextException(
        "stopThisWorkerThread() must be called from  a worker thread");
    }
  }

  public  ScriptContextImplementation(
     WorkerIdentity workerIdentity,
     WorkerIdentity firstWorkerIdentity,
     ThreadContextLocator threadContextLocator,
     GrinderProperties properties,
     Logger logger,
     Sleeper sleeper,
     SSLControl sslControl,
     Statistics scriptStatistics,
     TestRegistry testRegistry,
     ThreadStarter threadStarter,
     ThreadStopper threadStopper,
     BarrierGroups barrierGroups,
     BarrierIdentity.Factory barrierIdentityFactory);

}