move kstFile->getParsed() in try-catch and throw string instead of calling runtime_error
add restriction MAP to have primitive type of key