Can be simplified:
````java
if (service != null) {
       if (!splunkServer.isTestOnBorrow() || pingService(service)) {
		return service;
	}
	else {
		// fail so try next server
		continue;
	}
}
````