public function setSandBox()
    {
        if ($this->getType() !== self::TYPE_REQUEST) {
            return $this;
        }

        $last = $this->getLastDataPath();
        $last = array_pop($last);

        switch ($this->getLocation()) {
            case \SwaggerValidator\Common\FactorySwagger::LOCATION_BODY:
                \SwaggerValidator\Common\Sandbox::getInstance()->setBody($this->getDataValue());
                break;

            case \SwaggerValidator\Common\FactorySwagger::LOCATION_FORM:
                \SwaggerValidator\Common\Sandbox::getInstance()->setForm($last, $this->getDataValue());
                break;

            case \SwaggerValidator\Common\FactorySwagger::LOCATION_HEADER:
                \SwaggerValidator\Common\Sandbox::getInstance()->setHeader($last, $this->getDataValue());
                break;

            case \SwaggerValidator\Common\FactorySwagger::LOCATION_PATH:
                \SwaggerValidator\Common\Sandbox::getInstance()->setPath($last, $this->getDataValue());
                break;

            case \SwaggerValidator\Common\FactorySwagger::LOCATION_QUERY:
                \SwaggerValidator\Common\Sandbox::getInstance()->setQueryString($last, $this->getDataValue());
                break;
        }

        return $this;
    }