function workDir = getWorkDir(metadata)
    ed = exampleUtils.getExamplesDir();
    workDir = fullfile(ed, metadata.component, metadata.main);
end