public function unload()
{
// load the unique application name + the naming directory
$uniqueName = $this->getUniqueName();
$namingDirectory = $this->getNamingDirectory();
// unbind the environment references of the application
$namingDirectory->unbind(sprintf('php:env/%s/webappPath', $uniqueName));
$namingDirectory->unbind(sprintf('php:env/%s/tmpDirectory', $uniqueName));
$namingDirectory->unbind(sprintf('php:env/%s/cacheDirectory', $uniqueName));
$namingDirectory->unbind(sprintf('php:env/%s/sessionDirectory', $uniqueName));
$namingDirectory->unbind(sprintf('php:env/%s', $uniqueName));
// unbind the global references of the application
$namingDirectory->unbind(sprintf('php:global/%s/env/ApplicationInterface', $uniqueName));
$namingDirectory->unbind(sprintf('php:global/%s/env/persistence', $uniqueName));
$namingDirectory->unbind(sprintf('php:global/%s/env', $uniqueName));
$namingDirectory->unbind(sprintf('php:global/%s', $uniqueName));
}