Made createTokenParser() compatible with the parent signature