wouldn't simple "if (!ManifestHandlerRegistry::GetInstance(manifest->GetPackageType())->ValidateAppManifest" suffice here?