Changed type of RestServiceException to extend Exception.