NodeState transientState =
stateMgr.createTransientNodeState((NodeState) state, ItemState.STATUS_EXISTING_MODIFIED);
// remove listener on persistent state
state.removeListener(this);
// add listener on transient state
transientState.addListener(this);
// replace persistent with transient state
state = transientState;
} catch (ItemStateException ise) {
String msg = "failed to create transient state";
log.debug(msg);