private static function getViewPostfix($responseType)
{
$availableViewsMap = array('text/xml' => '.xml.phtml', 'application/json' => '.json.phtml', 'text/json' => '.json.phtml');
$viewForType = Arrays::getValue($availableViewsMap, $responseType, false);
if ($viewForType) {
return $viewForType;
}
return Uri::isAjax() ? '.ajax.phtml' : '.phtml';
}