Buggy code:
public class DocBuilder { private static final Logger LOG = LoggerFactory . getLogger ( DocBuilder . class ) ; private static final Date EPOCH = new Date ( 0 ) ; DataImporter dataImporter ; private DIHConfiguration config ; private EntityProcessorWrapper currentEntityProcessorWrapper ; @ SuppressWarnings ( "unchecked" ) private Map statusMessages = Collections . synchronizedMap ( new LinkedHashMap ( ) ) ; public DocBuilder . Statistics importStatistics = new DocBuilder . Statistics ( ) ; DIHWriter writer ; boolean verboseDebug = false ; Map < String , Object > session = new HashMap < String , Object > ( ) ; static final ThreadLocal < DocBuilder > INSTANCE = new ThreadLocal < DocBuilder > ( ) ; private Map < String , Object > persistedProperties ; private DIHProperties propWriter ; private static final String PARAM_WRITER_IMPL = "writerImpl" ; private static final String DEFAULT_WRITER_NAME = "SolrWriter" ; private DebugLogger debugLogger ; private final RequestInfo reqParams ; @ SuppressWarnings ( "unchecked" ) public DocBuilder ( DataImporter dataImporter , SolrWriter solrWriter , DIHProperties propWriter , RequestInfo reqParams ) { } DebugLogger getDebugLogger ( ) { } private VariableResolver getVariableResolver ( ) { try { VariableResolver resolver = null ; if ( ( ( ( dataImporter ) != null ) && ( ( dataImporter . getCore ( ) ) != null ) ) && ( ( dataImporter . getCore ( ) . getResourceLoader ( ) . getCoreProperties ( ) ) != null ) ) { resolver = new VariableResolver ( dataImporter . getCore ( ) . getResourceLoader ( ) . getCoreProperties ( ) ) ; } else { resolver = new VariableResolver ( ) ; } resolver . setEvaluators ( dataImporter . getEvaluators ( ) ) ; Map < String , Object > indexerNamespace = new HashMap < String , Object > ( ) ; if ( ( persistedProperties . get ( DocBuilder . LAST_INDEX_TIME ) ) != null ) { indexerNamespace . put ( DocBuilder . LAST_INDEX_TIME , persistedProperties . get ( DocBuilder . LAST_INDEX_TIME ) ) ; } else { indexerNamespace . put ( DocBuilder . LAST_INDEX_TIME , DocBuilder . EPOCH ) ; } indexerNamespace . put ( DocBuilder . INDEX_START_TIME , dataImporter . getIndexStartTime ( ) ) ; <START_BUG> indexerNamespace . put ( "request" , reqParams . getRawParams ( ) ) ; <END_BUG> for ( Entity entity : dataImporter . getConfig ( ) . getEntities ( ) ) { String key = ( ( entity . getName ( ) ) + "." ) + ( SolrWriter . LAST_INDEX_KEY ) ; Object lastIndex = persistedProperties . get ( key ) ; if ( ( lastIndex != null ) && ( lastIndex instanceof Date ) ) { indexerNamespace . put ( key , lastIndex ) ; } else { indexerNamespace . put ( key , DocBuilder . EPOCH ) ; } } resolver . addNamespace ( IMPORTER_NS_SHORT , indexerNamespace ) ; resolver . addNamespace ( IMPORTER_NS , indexerNamespace ) ; return resolver ; } catch ( Exception e ) { wrapAndThrow ( SEVERE , e ) ; return null ; } } private void invokeEventListener ( String className ) { } private void notifyListener ( EventListener listener ) { } @ SuppressWarnings ( "unchecked" ) public void execute ( ) { } private void closeEntityProcessorWrappers ( List < EntityProcessorWrapper > epwList ) { } @ SuppressWarnings ( "unchecked" ) private void finish ( Map < String , Object > lastIndexTimeProps ) { } void rollback ( ) { } private void doFullDump ( ) { } @ SuppressWarnings ( "unchecked" ) private void doDelta ( ) { } private void deleteAll ( Set < Map < String , Object > > deletedKeys ) { } @ SuppressWarnings ( "unchecked" ) public void addStatusMessage ( String msg ) { } private void resetEntity ( EntityProcessorWrapper epw ) { } private void buildDocument ( VariableResolver vr , DocBuilder . DocWrapper doc , Map < String , Object > pk , EntityProcessorWrapper epw , boolean isRoot , ContextImpl parentCtx ) { } @ SuppressWarnings ( "unchecked" ) private void buildDocument ( VariableResolver vr , DocBuilder . DocWrapper doc , Map < String , Object > pk , EntityProcessorWrapper epw , boolean isRoot , ContextImpl parentCtx , List < EntityProcessorWrapper > entitiesToDestroy ) { } static class DocWrapper extends SolrInputDocument { Map < String , Object > session ; public void setSessionAttribute ( String key , Object val ) { } public Object getSessionAttribute ( String key ) { } } private void handleSpecialCommands ( Map < String , Object > arow , DocBuilder . DocWrapper doc ) { } @ SuppressWarnings ( "unchecked" ) private void addFields ( Entity entity , DocBuilder . DocWrapper doc , Map < String , Object > arow , VariableResolver vr ) { } private void addFieldToDoc ( Object value , String name , float boost , boolean multiValued , DocBuilder . DocWrapper doc ) { } private EntityProcessorWrapper getEntityProcessorWrapper ( Entity entity ) { } private String findMatchingPkColumn ( String pk , Map < String , Object > row ) { } @ SuppressWarnings ( "unchecked" ) public Set < Map < String , Object > > collectDelta ( EntityProcessorWrapper epw , VariableResolver resolver , Set < Map < String , Object > > deletedRows ) { } private void getModifiedParentRows ( VariableResolver resolver , String entity , EntityProcessor entityProcessor , Set < Map < String , Object > > parentKeyList ) { } public void abort ( ) { } private AtomicBoolean stop = new AtomicBoolean ( false ) ; public static final String TIME_ELAPSED = "Time<seq2seq4repair_space>Elapsed" ; static String getTimeElapsedSince ( long l ) { } public RequestInfo getReqParams ( ) { } @ SuppressWarnings ( "unchecked" ) static Class loadClass ( String name , SolrCore core ) throws ClassNotFoundException { } public static class Statistics { public AtomicLong docCount = new AtomicLong ( ) ; public AtomicLong deletedDocCount = new AtomicLong ( ) ; public AtomicLong failedDocCount = new AtomicLong ( ) ;

Fix:
indexerNamespace . put ( "request" , new HashMap < String , Object > ( reqParams . getRawParams ( ) ) ) ;