/**
* @param TResultMap add a new result map to this SQLMap
* @throws TSqlMapDuplicateException
*/
public function addResultMap(TResultMap $result)
{
$key = $result->getID();
if ($this->_resultMaps->contains($key) == true) {
throw new TSqlMapDuplicateException('sqlmap_already_contains_result_map', $key);
}
$this->_resultMaps->add($key, $result);
}