vaadin 7.6.5: How to remove newly added empty row from grid?

Hi ,
I have added row in grid using this way :
addStudentBtn.addClickListener(e → grid.getContainerDataSource().addItem(new Student()));
// Student is model class
can any one help me hot to remove this empty row from grid.
removeStudentbtn.addClickListener(e → grid.getContainerDataSource().removeItem(new Student()));
or
removeStudentbtn.addClickListener(e → grid.getContainerDataSource().removeItem(student));

If your use case is something like add row, edit it, save/cancel and delete on cancel, that use case is not supported very beutifully. I studied that use case last year and did experimental solution.

https://vaadin.com/directory#!addon/addrowbutton-add-on

Thanks a lot.