code: public String columnLabelOrName(ResultSetMetaData rsmd, int col) throws SQLException{
  		String columnName = rsmd.getColumnLabel(col);
  		if (null == columnName || 0 == columnName.length()) {
  			columnName = rsmd.getColumnName(col);
  		}
  		return columnName;
  	}
docs: Get the label or name of a column
  @param rsmd
  @param col
  @return	label or name of the column
  @throws SQLException