private function getRealPassword($password) { if ($password instanceof PasswordGetterInterface) { return $password->getPassword($this->getHost(), $this->getUser()); } return $password; }