String sqlstate = e.getSQLState();
if (sqlstate.startsWith("23")) {
getLogger().log(e.getErrorCode() + ": Deadlock resolved on " + uri,
LOG_CHANNEL, Logger.WARNING);
return new ServiceAccessException(service, new ConflictException(uri));
} else if (sqlstate.startsWith("40")) {
getLogger().log(
e.getErrorCode() + ": Deadlock resolved on " + uri,
LOG_CHANNEL,
Logger.WARNING);
return new ServiceAccessException(service, new ConflictException(uri));
} else {
getLogger().log(
"SQL error "
+ e.getErrorCode()
+ " on "