/**
* @inheritDoc
*/
public function unserialize($serialized)
{
list($this->id, $username, $password) = unserialize($serialized);
if (!$this->clientDetails instanceof ClientDetailsInterface) {
$this->clientDetails = new ClientDetails();
}
$this->clientDetails->setUsername($username);
$this->clientDetails->setPassword($password);
}