public String getColumnLabel(int i) throws SQLException {
return this.getColumnName(i);
}
public String getColumnName(int i) throws SQLException {
Item item = items.get(0);
List<Attribute> attributes = item.getAttributes();
try {
Attribute attribute = attributes.get(i - 1);
return attribute.getName();
} catch (IndexOutOfBoundsException e) {
return "Unknown";