replaced Thread with Runnable in RunnableEntityGraph