public static function restoreStaticAttributes() {
foreach (self::$staticAttributes as $className => $staticAttributes) {
foreach ($staticAttributes as $name => $value) {
$reflector = new ReflectionProperty($className, $name);
$reflector
->setAccessible(TRUE);
$reflector
->setValue(unserialize($value));
}
}
self::$staticAttributes = array();
}