Replaced deprecated ClassManifest.erasure with ClassManifest.runtimeClass