            var resultOperation = operation;
            foreach (var transformationData in transformationDataChain)
            {
                // Some operations need the ability to remain on the local machine no matter what.  If a transformation will result in the command being moved to another machine,
                // skip it
                if (operation.MustRemainLocal && !transformationData.RemainsLocal)
                {
                    continue;
                }

                resultOperation = transformation.Transform(resultOperation, transformationData, variables);
            }

            return resultOperation;
        }
    }
}
