public function getList($params = array(), ServiceManager $sm) 
	{
		//var_dump($params); exit();
		$paginator = $this->getPaginator($params);
		
		$data = array();
		foreach($paginator as $post) {
			$data[] = $this->get($post, $sm); // verificare che cazzo fa sto get!!!!!
		}

		// Denormalizzazione parametri per creazione url da route
		$queryParams = array();
		$routeParams = array();
		$fields = isset($params['field']) ? array_values($params['field']) : array();
		$values = isset($params['value']) ? array_values($params['value']) : array();
		foreach($fields as $key => $field) {
			if(in_array($field, array('location', 'purpose', 'category'))) {
				$routeParams[$field] = $values[$key];
				continue;
			}
			$queryParams[$field] = $values[$key];
		}
		
		// remove user key from params if exists and if length 40 
		// (sha1 hash) add current
		$routeName = 'DocumentRegex/type/category/page';
		if(array_key_exists('account', $queryParams) && 40 == strlen($queryParams['account'])) {
			unset($queryParams['account']);
			$queryParams['current'] = true;
			$routeName = 'DocumentAccount/page';
		}
		
		return $this->getPaginationData($sm, $paginator, $data, $routeName, $routeParams, $queryParams);
	}