{
return new ResteasyCookieRestrictionViolationException(e);
}
if (InvalidCredentialsException.class.equals(e.getClass()))
{
return new ResteasyInvalidCredentialsException(e);
}
if (MalformedChallengeException.class.equals(e.getClass()))
{
return new ResteasyMalformedChallengeException(e);
}