private function buildBatch($userId)
    {
        $batch = array();

        while ($method = $this->getQueue()->dequeue(MethodInterface::SERVER_PLATFORM)) {
            $batch[] = $this->getMethodData($method, $userId);
        }

        return $batch;
    }