Buggy code:
public class EntityProcessorBase extends EntityProcessor { private static final Logger LOG = Logger . getLogger ( EntityProcessorBase . class . getName ( ) ) ; protected String entityName ; protected Context context ; protected VariableResolverImpl resolver ; protected Iterator < Map < String , Object > > rowIterator ; protected List < Transformer > transformers ; protected List < Map < String , Object > > rowcache ; protected String query ; @ SuppressWarnings ( "unchecked" ) private Map session ; public void init ( Context context ) { } @ SuppressWarnings ( "unchecked" ) void loadTransformers ( ) { String transClasses = context . getEntityAttribute ( EntityProcessorBase . TRANSFORMER ) ; if ( transClasses == null ) { transformers = Collections . EMPTY_LIST ; return ; } String [ ] transArr = transClasses . split ( "," ) ; transformers = new ArrayList < Transformer > ( ) { public boolean add ( Transformer transformer ) { return super . add ( DebugLogger . wrapTransformer ( transformer ) ) ; } } ; for ( String aTransArr : transArr ) { String trans = aTransArr . trim ( ) ; if ( trans . startsWith ( "script:" ) ) { String functionName = trans . substring ( "script:" . length ( ) ) ; ScriptTransformer scriptTransformer = new ScriptTransformer ( ) ; scriptTransformer . setFunctionName ( functionName ) ; transformers . add ( scriptTransformer ) ; continue ; } try { <START_BUG> Class clazz = DocBuilder . loadClass ( trans ) ; <END_BUG> if ( ( clazz . newInstance ( ) ) instanceof Transformer ) { transformers . add ( ( ( Transformer ) ( clazz . newInstance ( ) ) ) ) ; } else { final Method meth = clazz . getMethod ( EntityProcessorBase . TRANSFORM_ROW , Map . class ) ; if ( meth == null ) { String msg = ( "Transformer<seq2seq4repair_space>:" + trans ) + "does<seq2seq4repair_space>not<seq2seq4repair_space>implement<seq2seq4repair_space>Transformer<seq2seq4repair_space>interface<seq2seq4repair_space>or<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>transformRow(Map<seq2seq4repair_space>m)method" ; EntityProcessorBase . LOG . log ( Level . SEVERE , msg ) ; throw new DataImportHandlerException ( DataImportHandlerException . SEVERE , msg ) ; } transformers . add ( new EntityProcessorBase . ReflectionTransformer ( meth , clazz , trans ) ) ; } } catch ( Exception e ) { EntityProcessorBase . LOG . log ( Level . SEVERE , ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>Transformer:<seq2seq4repair_space>" + aTransArr ) , e ) ; throw new DataImportHandlerException ( DataImportHandlerException . SEVERE , e ) ; } } } @ SuppressWarnings ( "unchecked" ) static class ReflectionTransformer extends Transformer { final Method meth ; final Class clazz ; final String trans ; final Object o ; public ReflectionTransformer ( Method meth , Class clazz , String trans ) throws Exception { } public Object transformRow ( Map < String , Object > aRow , Context context ) { } } protected Map < String , Object > getFromRowCache ( ) { } @ SuppressWarnings ( "unchecked" ) protected Map < String , Object > applyTransformer ( Map < String , Object > row ) { } private void checkSkipDoc ( Map oMap , Transformer t ) { } protected Map < String , Object > getNext ( ) { } public Map < String , Object > nextModifiedRowKey ( ) { } public Map < String , Object > nextDeletedRowKey ( ) { } public Map < String , Object > nextModifiedParentRowKey ( ) { } public void setSessionAttribute ( Object key , Object val ) { } public Object getSessionAttribute ( Object key ) { } public Map < String , Object > nextRow ( ) { } public void destroy ( ) { } public void clearSession ( ) { } protected String cachePk ; protected String cacheVariableName ; protected Map < String , List < Map < String , Object > > > simpleCache ; protected Map < String , Map < Object , List < Map < String , Object > > > > cacheWithWhereClause ; protected List < Map < String , Object > > dataSourceRowCache ; protected void cacheInit ( ) { } protected Map < String , Object > getIdCacheData ( String query ) { } protected List < Map < String , Object > > getAllNonCachedRows ( ) { } protected Map < String , Object > getSimpleCacheData ( String query ) { } protected Map < String , Object > getFromRowCacheTransformed ( ) { } public static final String TRANSFORMER = "transformer" ; public static final String TRANSFORM_ROW = "transformRow" ; public static final String SKIP_DOC = "$skipDoc" ; }

Fix:
Class clazz = DocBuilder . loadClass ( trans , context . getSolrCore ( ) ) ;