public function unserialize($serialized)
    {
        //Resets the event list and the Client instance
        $properties = unserialize($serialized);
        $this->getEventManager()->setEventList(new EventList);
        $this->Client = new Client($properties['Client']);
        unset($properties['Client']);

        foreach ($properties as $name => $value) {
            $this->$name = $value;
        }
    }