public static void setConf(Object theObject, Configuration conf) {
    if (conf != null) {
      if (theObject instanceof Configurable configurable) {
        configurable.setConf(conf);
      }
      setJobConf(theObject, conf);
    }
  }
Check and set 'configuration' if necessary.

@param theObject object for which to set configuration
@param conf Configuration
common/src/java/org/apache/hive/common/util/ReflectionUtil.java