protected function checkTokenLimit()
{
$nb_tokens = $this->datastore->getHash('tokens');
if ($nb_tokens > $this->config->token_limit) {
$this->datastore->addRow('hash', array('token error' => "Project too large ({$nb_tokens} / {$this->config->token_limit})"));
throw new ProjectTooLarge($nb_tokens, $this->config->token_limit);
}
}