code: public static void setConf(Object theObject, Configuration conf,
        boolean supportJobConf) {
      if (conf != null) {
        if (theObject instanceof Configurable) {
          ((Configurable) theObject).setConf(conf);
        }
        if (supportJobConf) {
          setJobConf(theObject, conf);
        }
      }
    }
docs: Check and set 'configuration' if necessary.
  
  @param theObject object for which to set configuration
  @param conf Configuration
  @param supportJobConf whether needs to configure old jobConf in an older way