code: @Override
      public RemoteWebDriver createDriver(WebDriverPlatform platform, CommandExecutor commandExecutor,
                                            URL url, Capabilities caps) {
  
          if (platform.equals(WebDriverPlatform.ANDROID)) {
              if (commandExecutor == null) {
                  return new SeLionAppiumAndroidDriver(url, caps);
              } else {
                  return new SeLionAppiumAndroidDriver(commandExecutor, caps, url);
              }
          } else if (platform.equals(WebDriverPlatform.IOS)) {
              if (commandExecutor == null) {
                  return new SeLionAppiumIOSDriver(url, caps);
              } else {
                  return new SeLionAppiumIOSDriver(commandExecutor, caps, url);
              }
          }
          logger.log(Level.SEVERE, "Error creating instance of Appium RemoteWebDriver for " + platform);
          return null;
      }
docs: create an instance of SeLionAppiumIOSDriver or SeLionAppiumAndroidDriver