public function incrementDeploymentRevision($details = null)
    {
        if (!$this->incrementedOnce) {

            $backtrace = null;//serialize(debug_backtrace());

            $version = $this->versionDao->insertSystemVersion($details, $backtrace);

            $this->Events->trigger('SystemVersion.increment', $version);

            $this->version = $version;
            $this->incrementedOnce = true;
        } else {
            $this->version = $this->version.'.'.$this->internal++;
        }
        $this->cache->delete('DeploymentRevision');
        $this->cache->delete('CFVersion');

        return $this->version;

    }