Updated off deprecated API's to the threadly 2.2.0-SNAPSHOT version