// TODO need to fix: ERRORS_CONTROLLER doesn't have a form of
// ../{sessionId}/{subPath}
// accessor.setProperty(PropertyType.ERRORS_CONTROLLER, record,
// statusUpdateSubPath);
accessor.setProperty(keyBuilder.controllerTaskError(statusUpdateSubPath),
new Error(record));
}
else
{
// accessor.updateProperty(PropertyType.ERRORS,
// record,
// instanceName,
// sessionId,
// statusUpdateSubPath,
// statusUpdateKey);
accessor.updateProperty(keyBuilder.stateTransitionError(instanceName,
sessionId,
statusUpdateSubPath,
statusUpdateKey),
new Error(record));
}
}