try {
connection.storeVersion(version);
connection.commit();
} catch (SQLException ex) {
log.warn("could not store versioning information (error: {}); rolling back...", ex.getMessage());
connection.rollback();
} finally {
connection.close();
}
} catch(SQLException ex) {
log.warn("could not store versioning information (error: {})", ex.getMessage());