code: private void checkAndValidateParameters(ConfigProperty configProperty) {
          LOGGER.entering(configProperty);
          try {
              switch (configProperty) {
              case SELENDROID_SERVER_START_TIMEOUT:
              case SELENDROID_EMULATOR_START_TIMEOUT: {
                  // Selendroid takes timeoutEmulatorStart/serverStartTimeout in milliseconds.
                  Config.getIntConfigProperty(configProperty);
                  break;
              }
              case MOBILE_DRIVER_SESSION_TIMEOUT: {
                  // Selendroid takes sessionTimeout in seconds.
                  int receivedValue = Config.getIntConfigProperty(configProperty) / 1000;
                  if (receivedValue == 0) {
                      String errorMessage = "Insufficient value received for configuration property "
                              + configProperty.getName() + ", probably value is less than 1000 milliseconds.";
                      throw new IllegalArgumentException(errorMessage);
                  }
                  break;
              }
              default: {
                  throw new IllegalArgumentException(
                          "Invalid selendroid configuration received for validation, configuration property = "
                                  + configProperty.getName());
              }
              }
          } catch (ConversionException exe) {
              String errorMessage = "Invalid data received for configuration property " + configProperty.getName()
                      + ", probably not an integer for milliseconds.";
              throw new IllegalArgumentException(errorMessage, exe);
          }
  
          LOGGER.exiting();
      }
docs: /*
  Checks the presence of selendroid specific parameters provided by the user and validates them.
  IllegalArgumentException is thrown if the parameter is either insufficient or irrelevant. Throws a
  NullPointerException if the received configProperty is null.
  
  @param configProperty a SeLion {@link ConfigProperty} to validate