public static void callCommand(Command command, Object data) throws Exception 
    {
        try {		

      	  command.execute(data);
      } catch (Exception e) {

          TakesScreenshot(getDriver(),"ABCD");
      	e.printStackTrace();
      }
      
		getDriver().close();
		
	
    }