@@ -0,0 +1,923 @@
+package tools.vitruv.framework.util;%0A%0Aimport java.util.Map;%0A%0Aimport org.eclipse.emf.ecore.resource.Resource;%0Aimport org.eclipse.emf.ecore.resource.ResourceSet;%0Aimport org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;%0A%0Apublic class ResourceSetUtil %7B%0A%09public static void addExistingFactoriesToResourceSet(ResourceSet resourceSet) %7B%0A        Map%3CString, Object%3E globalExtensionToFactoryMap = Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap();%0A        for (String extension : globalExtensionToFactoryMap.keySet()) %7B%0A            resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(extension,%0A                    globalExtensionToFactoryMap.get(extension));%0A        %7D%0A        if (resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().isEmpty()) %7B%0A        %09resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(%22*%22, new XMIResourceFactoryImpl());%0A        %7D%0A%09%7D%0A%7D%0A

Add utilities class for resource sets