public function sasGetOntologyData()
    {
		if(!$this->isXmlHttpRequest()){
			throw new common_exception_IsAjaxAction(__FUNCTION__);
		}

		$showInstances = $this->hasRequestParameter('hideInstances')
			? !(bool)$this->getRequestParameter('hideInstances')
			: true;

		$hideNode = $this->hasRequestParameter('classUri');
		$clazz = $this->hasRequestParameter('classUri') ? $this->getCurrentClass() : $this->getRootClass();

		if($this->hasRequestParameter('offset')){
			$options['offset'] = $this->getRequestParameter('offset');
		}
		$limit = $this->hasRequestParameter('limit') ? $this->getRequestParameter('limit') : 0;
		$offset = $this->hasRequestParameter('offset') ? $this->getRequestParameter('offset') : 0;

		$factory = new GenerisTreeFactory($showInstances, array($clazz->getUri()), $limit, $offset);
		$tree = $factory->buildTree($clazz);

		$returnValue = $hideNode ? ($tree['children']) : $tree;
		$this->returnJson($returnValue);
	}