public PackageInstallation(IBackOfficeRequestContext context, HttpContextBase httpContext, IPackage package)
{
_context = context;
_package = package;
_httpContext = httpContext;
var packageFolderName = _context.PackageContext.LocalPathResolver.GetPackageDirectory(_package);
var packageFolderPath = Path.Combine(_context.Application.Settings.PluginConfig.PluginsPath, "Packages", packageFolderName);
_absolutePackagePath = _httpContext.Server.MapPath(packageFolderPath);
_absoluteRootedPath = _httpContext.Server.MapPath("~/");
Mandate.That(Directory.Exists(_absolutePackagePath), x => new FileNotFoundException("The package directory " + _absolutePackagePath + " could not be found"));
}