} else if (packagePath.equals("meta.xml") || packagePath.endsWith("/meta.xml")) {
newFileDom = new OdfMetaDom((OdfSchemaDocument) packageDocument, packagePath);
} else if (packagePath.equals("settings.xml") || packagePath.endsWith("/settings.xml")) {
newFileDom = new OdfSettingsDom((OdfSchemaDocument) packageDocument, packagePath);
} else if (packagePath.equals("META-INF/manifest.xml") || packagePath.endsWith("/META-INF/manifest.xml")) {
newFileDom = new OdfManifestDom((OdfSchemaDocument) packageDocument, packagePath);
} else {
newFileDom = new OdfFileDom(packageDocument, packagePath);
}
} else {
if (existingDom instanceof OdfFileDom) {