bool isAuthenticationError(const core::Error& error)
{
   if (error.code() == server::errc::AuthenticationError)
      return true;
   else
      return false;
}
bool isSessionUnavailableError(const ::core::Error& error)
{
   if (error.code() == server::errc::SessionUnavailableError)
      return true;
   else
      return false;
}