public function getContainer($name)
    {
        $this->validateContainerName($name);

        try {
            $response = $this->makeRequest(Client::HEAD, array($name));
        } catch (Exceptions\ResponseError $e) {
            if (404 == $e->getCode()) {
                throw new Exceptions\NoSuchContainer();
            }

            throw $e;
        }

        $nbObjects = $response['headers']['x-container-object-count'];
        $sizeUsed  = $response['headers']['x-container-bytes-used'];
        $metadata  = array();

        foreach ($response['headers'] as $k => $value) {
            if (0 === strpos($k, 'x-container-meta-')) {
                $metadata[substr($k, 17)] = $value;
            }
        }

        return new Container($this, $name, $nbObjects, $sizeUsed, $metadata);
    }