refactor finish.xhtml && add checkNull method in BasePage.