For a custom callback, how does Contao output the various information stored in
$_SESSION['TL_ERROR']
$_SESSION['TL_CONFIRM']
$_SESSION['TL_INFO']

I assume it flushes the session variables when it outputs, where can I see the code that outputs?