public virtual void Execute(IDatabaseCommands databaseCommands, DocumentConvention documentConvention)
{
Conventions = documentConvention;
var transformerDefinition = CreateTransformerDefinition();
// This code take advantage on the fact that RavenDB will turn an index PUT
// to a noop of the index already exists and the stored definition matches
// the new definition.
databaseCommands.PutTransformer(TransformerName, transformerDefinition);
UpdateIndexInReplication(databaseCommands, documentConvention, (commands, url) =>
commands.DirectPutTransformer(TransformerName, url, transformerDefinition));
}
#endif