public static function buildTree(core_kernel_classes_Resource $resource, core_kernel_classes_Property $property) {
		$tree = new self($resource, $property);
		
		$range = $property->getRange();
		$tree->setData('rootNode',		$range->getUri());
		$tree->setData('dataUrl',		_url('getData', 'GenerisTree', 'tao'));
		$tree->setData('saveUrl',		_url('setValues', 'GenerisTree', 'tao'));
		
		$values = $resource->getPropertyValues($property);
		$tree->setData('values', $values);
		$openNodeUris = TreeHelper::getNodesToOpen($values, $range);
		$tree->setData('openNodes',		$openNodeUris);
		return $tree;
	}