Changed the code to fetch the default search service application.