}
// current row -> Map
public static Map currentRowToMap(RowSet rows) {
try {
Map result = new CaseInsensitiveHashMap();
ResultSetMetaData rsmd = rows.getMetaData();
int cols = rsmd.getColumnCount();
for(int i = 1; i <= cols; i++) {
result.put(rsmd.getColumnName(i), getValue(rows, i, rsmd));
}
return result;
} catch(SQLException ex) {
throw RepositoryException.throwIt(ex) ;