code: public static void closeResultSet(ResultSet rs){
  		if (rs != null) {
  			try {
  				rs.close();
  			} catch (Exception e) {
  				log.warn("Exception when closing database result set.", e);
  			}
  		}
  	}
docs: Closes database ResultSet
  No exception will be thrown even if occurred during closing,
  instead, the exception will be logged at warning level.
  
  @param rs	the ResultSet that need to be closed