You don't need this all.
Use ManifestHelper instead.