for (int i=1;i<=nColumns;i++) {
String name = md.getColumnName(i);
boolean isIteratingDb = true;
if (rs instanceof RepositoriesResultSetWrapper) {
RepositoriesResultSetWrapper reposRs = (RepositoriesResultSetWrapper) rs;
isIteratingDb = reposRs == null
|| (reposRs != null && reposRs.isDbFinishedIterating() == false);
}
if (isIteratingDb && columnTags != null) {
name = columnTags[i-1];
}