Builder keyBuilder = accessor.keyBuilder();
String instanceName = manager.getInstanceName();
String partition = _message.getPartitionName();
String resourceName = _message.getResourceName();
CurrentState currentStateDelta = new CurrentState(resourceName);
StateTransitionError error = new StateTransitionError(type, code, e);
_stateModel.rollbackOnError(_message, _notificationContext, error);
// if the transition is not canceled, it should go into error state
if (code == ErrorCode.ERROR)
{
currentStateDelta.setState(partition, "ERROR");
_stateModel.updateState("ERROR");
accessor.updateProperty(keyBuilder.currentState(instanceName,
_message.getTgtSessionId(),
resourceName),