public function getList($id)
{
if (!isset($this->lists[$id])) {
throw new \InvalidArgumentException("There is no list defined with id [{$id}]");
}
foreach ($this->lists[$id] as $pos => $object) {
if (is_array($object)) {
$this->lists[$id][$pos] = $this->instanciateObject($object);
}
}
return $this->lists[$id];
}