}
try {
conn = DataSourceElement.getConnection(getDataSource());
} finally {
res.latencyEnd(); // use latency to measure connection time
}
res.setResponseHeaders(conn.toString());
res.setResponseData(execute(conn));
} catch (SQLException ex) {
final String errCode = Integer.toString(ex.getErrorCode());