Added code to support StateHolder in get/replaceItemValue. No clue if it
works or not