public function setGlobalState($key, $value, $defaultValue = null, $forceSave = false)
{
$this->_stateChanged = true;
if ($value === $defaultValue) {
unset($this->_globals[$key]);
} else {
$this->_globals[$key] = $value;
}
if ($forceSave) {
$this->saveGlobals();
}
}