final Connection connection = connectionPool.get();
try {
return adapter.getMessages(connection, getId(), factory, headerPolicy);
} catch (SQLException ex) {
throw new HermesException(ex);
}
//
// Connection is closed later by the MessageResultSetHandler...