code: private static boolean setParamFromString(String name, String value) throws ConfigurationException {
          try {
              Field field = config.getClass().getDeclaredField(name);
              String fieldType = field.getType().toString();
              if (fieldType.compareToIgnoreCase("int") == 0) {
                  field.set(config, Integer.parseInt(value));
              } else if (fieldType.compareToIgnoreCase("boolean") == 0) {
                  field.set(config, Boolean.parseBoolean(value));
              } else if (fieldType.endsWith("List")) {
                  setCollectionParam(name, Arrays.asList(value.split(",")));
              } else {
                  field.set(config, value);
              }
              return true;
          } catch (SecurityException | NoSuchFieldException | IllegalAccessException e) {
              return false;
          } catch (IllegalArgumentException e) {
              throw new ConfigurationException("Couldn't parse parameter: " + value);
          }
      }
docs: Return false if given name is not a known scalar configuration parameter