Fixup of getByToken migration
Merge pull request #581 from Martin-Grunewald/consumesAPI2

Fixup of getByToken migration