public function get($id)
{
$models = $this->getMembers();
if (isset($models[$id])) {
return $models[$id];
}
foreach ($models as $model) {
if ($model->get('longname') == $id) {
return $model;
}
}
throw new TerminusNotFoundException('An upstream identified by "{id}" could not be found.', compact('id'));
}