code: public void setValue(T value)
      {
          try
          {
              lock.writeLock().lock();
              this.value = value;
          }
          finally
          {
              lock.writeLock().unlock();
          }
      }
docs: Change the value that is returned by this generator.
  @param value The new value to return.