code: public void setSegmentFactory(SegmentFactory segmentFactory) {
          if(segmentFactory == null) {
              throw new IllegalArgumentException("Invalid segmentFactory: " + segmentFactory);
          }
          
          this._segmentFactory = segmentFactory;
          this._properties.setProperty(PARAM_SEGMENT_FACTORY_CLASS, segmentFactory.getClass().getName());
      }
docs: Sets the segment factory of the target store.
  
  @param segmentFactory