I am running into the same problem on a job I did yesterday. Commercial gluedown, definitely coffee because it's right where they have the coffee machine. I sprayed the area liberally with Pro's Choice Stain 1 and agitated it with my rake. I think the new formulation of Stain 1 has ARA in it and it is supposed to be as good as the old Stain Magic. I don't know if Stain Magic has an Anti Resoiling Agent in it.
I will find out in a few days if this worked. I hope it will.If not, I'll have to stink up the place with my old coffee stain remover which is Sodium Bi Carbonate I think.
Sodium Bisulfite.
Its rank but it works.