function find($q, &$matched_path = null)
{
list($path, $param) = explode('?', $q) + array(null, null);
$paths = self::stringToPath($path);
$params = is_null($param) ? null : explode('&', $param);
return $this->findByArray($paths, $params, $matched_path);
}