code: private static void configureListeners(final SelectionListener listener, final Grid grid) {
  
  		if (listener != null) {
  			grid.addSelectionListener(listener);
  		}
  	}
docs: Configure listeners.
  
  @param listener
  the listener
  @param grid
  the grid