/**
  * Pop the next job off of the queue.
  *
  * @param null $queue
  *
  * @return \Faulker\RackspaceCloudQueue\Queue\Jobs\RackspaceCloudQueueJob
  */
 public function pop($queue = null)
 {
     $queue = $this->getQueue($queue);
     $this->createQueue($queue);
     /**
      * @var \OpenCloud\Common\Collection\PaginatedIterator $response
      */
     $response = $this->queue->claimMessages(array('grace' => 5 * Datetime::MINUTE, 'ttl' => 5 * Datetime::MINUTE));
     if ($response and $response->valid()) {
         $message = $response->current();
         return new RackspaceCloudQueueJob($this->container, $this->queue, $queue, $message);
     }
 }