private function _getDeploymentPath($name, GetDeploymentOptions $options)
    {
        $slot = $options->getSlot();
        $deploymentName = $options->getDeploymentName();
        $path = null;

        Validate::isTrue(
            !empty($slot) || !empty($deploymentName),
            Resources::INVALID_DEPLOYMENT_LOCATOR_MSG
        );

        if (!empty($slot)) {
            $path = $this->_getDeploymentPathUsingSlot($name, $slot);
        } else {
            $path = $this->_getDeploymentPathUsingName($name, $deploymentName);
        }

        return $path;
    }