code: private void setConfigProperty(Properties props, String propName, Object value) {
          if (value != null) {
              props.setProperty(propName, String.valueOf(value));
          }
      }
docs: Sets a configuration property, but only if it's not null.