Add more logging statements to ControllerThread
Change the ClassSourceProducer so it will work for different inputs sequentially.