protected function getViewRendererName() {
		$config = $this->getConfig();
		$inputData = $this->getSite()->getSanitizedInputData();
		$viewRendererName = null;

		$availableCoreRenderers = array("json","csv","html");

		$viewRenderOverride = null;

		//legacy support for original GET request of JSONViewRenderer
		if (!empty($inputData['json'])) {
			$viewRenderOverride = "JSONViewRenderer";
		} else if (!empty($inputData['view_renderer']) && in_array($inputData['view_renderer'],$availableCoreRenderers)) {
			$viewRenderOverride = "{$inputData['view_renderer']}ViewRenderer";
		}
		if ($viewRenderOverride) {
			$viewRendererName = "{$config['NAMESPACE_CORE']}Classes\\ViewRenderers\\{$viewRenderOverride}";
		} else if (!empty($config['VIEW_RENDERER'])) {
			if (class_exists("{$config['NAMESPACE_APP']}Classes\\ViewRenderers\\{$config['VIEW_RENDERER']}")) {
				$viewRendererName = "{$config['NAMESPACE_APP']}Classes\\ViewRenderers\\{$config['VIEW_RENDERER']}";
			} elseif (class_exists("{$config['NAMESPACE_CORE']}Classes\\ViewRenderers\\{$config['VIEW_RENDERER']}")) {
				$viewRendererName = "{$config['NAMESPACE_CORE']}Classes\\ViewRenderers\\{$config['VIEW_RENDERER']}";
			}
		} else {
			$viewRendererName = "{$config['NAMESPACE_CORE']}Classes\\ViewRenderers\\HTMLViewRenderer";
		}
		return $viewRendererName;
	}