adding method checkServiceAvailable to UriUtils