@Before
 public void setUp() {
   user = properties.getUserName();
   password = properties.getPassword();
   loginPage = new LoginPage(driver);
   homePage = new HomePage(driver);
   url = properties.getWebAppUrl();
   if (url.contains("localhost")) {
     httpClientHelper = new UITestHttpClientHelper(url);
     httpClientHelper.addParticipant(new TestParticipant(), user, password);
   }
   if (homePage.expectedUrlPath() != currentPage().urlPath()) {
     loginPage.login(user, password);
   }
 }
 public void tearDown() throws Exception {
   loginPage.logOut();
 }