function foundHelp = getHelpFromClassInfo(hp, classInfo, justH1)
    
    foundHelp = false;
    
    if isempty(hp.helpStr)
        hp.helpStr = classInfo.getHelp(justH1, hp.command, hp.topic);
        hp.needsHotlinking = true;
        foundHelp = true;
        hp.topic = classInfo.minimalPath;
    end 
    if ~isempty(hp) && endsWith(hp.topic,'.sfx')
        hp.inputTopic = [];
    end
end

%   Copyright 2007-2020 The MathWorks, Inc.
