protected function getRelationHandler($name, $args = array())
{
if (($context = $this->createRelationContext($name)) !== null) {
$criteria = $this->getRecordCriteria(count($args) > 0 ? $args[0] : null, array_slice($args, 1));
return $context->getRelationHandler($criteria);
} else {
return null;
}
}