function [key,val] = findTMFToken(h,keyname)
%FINDTMFTOKEN this function searches for a Token that has the matching
%keyname

% Copyright 2011-2019 The MathWorks, Inc.

key = '';
val = '';

kvPair = findKeyValuePair(h, 'Token', keyname);

if ~isempty(kvPair)
    key = kvPair.Key;
    val = kvPair.Value;
end
