Added @Provider annotation for the AccessDeniedExceptionMapper and
removed the "if" clauses when possible as suggested.