logback and modify entitymanager thread.