public function findByRequestParams(Request\Params $params)
    {       
        if (empty($params->pagination) &&
            isset($params->resourceConfig) && 
            isset($params->resourceConfig->defaults) &&
            isset($params->resourceConfig->defaults->pagination) &&
            !$params->resourceConfig->defaults->pagination
            ) {
            return $this->findAll(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->translatable
            );
        } else {
            return $this->findPaginated(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->getPageOffset(),
                $params->getPageSize(),
                $params->translatable
            );
        }
    }