Connection connection = null;
try {
connection = getNewConnection();
return adapter.retrieveRevisionDescriptor(connection, uri, revisionNumber);
} catch (SQLException e) {
throw new ServiceAccessException(this, e);
} finally {
if (connection != null) {
try {
if (!tmCommits) {
connection.commit();
}
} catch (SQLException e) {
throw new ServiceAccessException(this, e);
} finally {
try {
connection.close();
} catch (SQLException e) {
getLogger().log(e, LOG_CHANNEL, Logger.WARNING);