Path filePath = Paths.get(syncFile.getFilePathName());
Files.deleteIfExists(filePath);
SyncFileService.deleteSyncFile(syncFile);
}
else if (exception.equals(
<BUG>"com.liferay.sync.SyncServicesUnavailableException")) {
SyncAccount syncAccount = SyncAccountService.fetchSyncAccount(
getSyncAccountId());
syncAccount.setState(SyncAccount.STATE_DISCONNECTED);
syncAccount.setUiEvent(</BUG>
SyncAccount.UI_EVENT_SYNC_SERVICES_NOT_ACTIVE);

Path filePath = Paths.get(syncFile.getFilePathName());
Files.deleteIfExists(filePath);
SyncFileService.deleteSyncFile(syncFile);
}
else if (exception.equals(
"com.liferay.sync.SyncServicesUnavailableException")) {
retryServerConnection(
