public function selectCollection($name)
{
if (!isset($this->collections[$name])) {
if (!in_array($name, $this->getCollectionNames())) {
$this->createCollection($name);
}
$this->collections[$name] = new Collection($name, $this);
}
return $this->collections[$name];
}