getSyncAccountId());
syncAccount.setState(SyncAccount.STATE_DISCONNECTED);
syncAccount.setUiEvent(</BUG>
SyncAccount.UI_EVENT_SYNC_SERVICES_NOT_ACTIVE);
<BUG>SyncAccountService.update(syncAccount);
retryServerConnection();</BUG>
}
else if (exception.equals(
"com.liferay.portal.kernel.jsonwebservice." +
"NoSuchJSONWebServiceException") ||

Path filePath = Paths.get(syncFile.getFilePathName());
Files.deleteIfExists(filePath);
SyncFileService.deleteSyncFile(syncFile);
}
else if (exception.equals(
"com.liferay.sync.SyncServicesUnavailableException")) {
retryServerConnection(
SyncAccount.UI_EVENT_SYNC_SERVICES_NOT_ACTIVE);
}
else if (exception.equals(
"com.liferay.portal.kernel.jsonwebservice." +
"NoSuchJSONWebServiceException") ||
