setting up the tread local for runnable and injecting as service.