code: @Override
      public void setQName(final QName paramName) throws TTException {
          checkState(!mDelegate.isClosed(), "Transaction is already closed.");
          checkState(mDelegate.getCurrentNode() instanceof ITreeNameData,
              "setQName is not allowed if current node is not an ITreeNameData implementation, but was %s",
              mDelegate.getCurrentNode());
  
          final long oldHash = mDelegate.getCurrentNode().hashCode();
  
          final ITreeNameData node = (ITreeNameData)getPtx().getData(mDelegate.getCurrentNode().getDataKey());
          node.setNameKey(insertName(buildName(paramName)));
          getPtx().setData(node);
  
          mDelegate.setCurrentNode((ITreeData)node);
          adaptHashedWithUpdate(oldHash);
      }
docs: {@inheritDoc}