Change the GeneratorService behaviour to check for an conflicting code before attempting to assign one.