this function is not needed. Client can do: PermissionsInfo* info = static_cast<PermissionsInfo*>(application->GetManifestData(keys::kPermissionsKey);
If you just need to save some space in test file, just make an aux function in a nameless namespace