public function assembleResult( EarthIT_CMIPREST_ActionResult $result, TOGoS_Action $action=null, $ctx=null ) {
		$rootRc = $result->getRootResourceClass();
		$columnHeaders = array();
		foreach( $rootRc->getFields() as $fn=>$field ) {
			$columnHeaders[] = $fn;
		}

		$itemCollections = $result->getItemCollections();
		$rows = array($columnHeaders);
		foreach( $itemCollections['root'] as $item ) {
			$row = array();
			foreach( $columnHeaders as $c ) {
				$row[$c] = $item[$c];
			}
			$rows[] = $row;
		}
		return $rows;
	}