Catch WebApplicationException in getEventHub