Serialize component ID and pass it on to ResolvedComponentResult.