code: public static int getFirstRow(RowSelection selection) {
  		return (selection == null || selection.getFirstRow() == null) ? 0 : selection.getFirstRow();
  	}
docs: Retrieve the indicated first row for pagination
  
  @param selection The row selection options
  @return The first row