Fix APMGMetadataXmlDocument resource loading

Use the class loader to get the correct resource.