public static function load($uuid) { if (!uuid::check($uuid)) { throw new Exception('expected uuid'); } list($key, $obj) = unserialize(file_get_contents(util::base() . '/state/' . $uuid)); if (state::key() !== $key) { throw new Exception('permission denied'); } return $obj; }