*/
@Override
public JobStatus waitForJobStatusChange(UUID jobId, long lastEventId,
long timeoutMillis) throws IllegalArgumentException,
SecurityException, RemoteException {
JobService service = null;
while (true) {
try {
service = getJobService(service);
return service.waitForJobStatusChange(jobId, lastEventId, timeoutMillis);
} catch (NoSuchObjectException e) {
logger.error("Lost connection", e);
} catch (ConnectException e) {
logger.error("Lost connection", e);
} catch (ConnectIOException e) {