*/
	public static void main(String[] args)		throws MDSHrefFormatException, MDSCoreException {				MetaDataServer server = new MetaDataServerImpl();		MDSRepository rep = new MDSRepositoryImpl();		/*		// testmodel erstellen		MDSModel model = new MDSModelImpl();		model.setLabel("erstes");				MDSClass myclass1 = new MDSClassImpl();		myclass1.setLabel("MyClass0");		MDSClass myclass2 = new MDSClassImpl();		myclass2.setLabel("MyClass1");		MDSClass myclass3 = new MDSClassImpl();		myclass3.setLabel("MyClass2");		MDSClass myclass4 = new MDSClassImpl();		myclass4.setLabel("MyClass3");		MDSClass myclass5 = new MDSClassImpl();		myclass5.setLabel("MyClass4");		MDSClass myclass6 = new MDSClassImpl();		myclass6.setLabel("MyClass5");		MDSClass myclass7 = new MDSClassImpl();		myclass7.setLabel("MyClass6");		MDSClass myclass8 = new MDSClassImpl();		myclass8.setLabel("MyClass7");		AssociationEnd end1 = new AssociationEndImpl();		//end1.setMultiplicity(AssociationEnd.MULTIPLICITY_0_OR_1);		end1.setMdsClass(myclass1);		AssociationEnd end2 = new AssociationEndImpl();		//end2.setMultiplicity(AssociationEnd.MULTIPLICITY_0_OR_MORE);		end2.setMdsClass(myclass2);		AssociationEnd end3 = new AssociationEndImpl();		end3.setMdsClass(myclass3);		AssociationEnd end4 = new AssociationEndImpl();		end4.setMdsClass(myclass4);		AssociationEnd end5 = new AssociationEndImpl();		end5.setMdsClass(myclass7);		AssociationEnd end6 = new AssociationEndImpl();		end6.setMdsClass(myclass8);		MDSAssociation compo =			new MDSAssociationImpl();		compo.setLabel("Compo");		end5.setAggregation(AssociationEnd.COMPOSITE_AGGREGATION);		compo.addAssociationEnd(end5);		compo.addAssociationEnd(end6);		MDSAssociation asso = new MDSAssociationImpl();		asso.setLabel("Asso");		asso.addAssociationEnd(end1);		asso.addAssociationEnd(end2);		MDSAssociation aggi =			new MDSAssociationImpl();		aggi.setLabel("Aggi");		end3.setAggregation(AssociationEnd.SHARED_AGGREGATION);		aggi.addAssociationEnd(end3);		aggi.addAssociationEnd(end4);		MDSGeneralization geni = new MDSGeneralizationImpl();		geni.setLabel("Geni");		geni.setSuperClass(myclass5);		geni.setSubClass(myclass6);		*/		MDSHref rhref = server.insertReposititory(rep);		/*		MDSHref href = server.insertModel(rhref, model);				server.insertElement(href, myclass1);		server.insertElement(href, myclass2);		server.insertElement(href, myclass3);		server.insertElement(href, myclass4);		server.insertElement(href, myclass5);		server.insertElement(href, myclass6);		server.insertElement(href, myclass7);		server.insertElement(href, myclass8);		server.insertElement(href, asso);		server.insertElement(href, aggi);		server.insertElement(href, geni);		server.insertElement(href, compo);		ArrayList files = new ArrayList();		MDSFile file = new MDSFileImpl();		file.setName("test");		file.setPath(".");		file.setType("plain_text");		files.add(file);		model.setAdditionalFiles(files);				// zweites testmodel mit erstem als metamodel		MDSModel model1 = new MDSModelImpl();		model1.setLabel("zweites");		model1.setMetamodel(model);		href = server.insertModel(rhref, model1);		server.insertElement(href, myclass1);				// vom ersten die xmi-reprsentation ausprinten		String xmiContent = model.getXmiFile().getContent();		System.out.println(xmiContent);				// vom zweiten die xmi-reprsemtation ausprinten		xmiContent = model1.getXmiFile().getContent();		System.out.println(xmiContent);		*/		// erstes model als sample speichern		FileWriter f1;		MDSFile file1 = new MDSFileImpl();		BufferedReader f;		String line = null;		String content = "";		try {			/*			f1 = new FileWriter("sample.xmi");			f1.write(model.getXmiFile().getContent());			f1.close();			*/			// sample laden			f =				new BufferedReader(					new FileReader("sample.xmi"));			while ((line = f.readLine()) != null) {				content += line + "\n";			}			f.close();			file1.setContent(content);			// sample-inhalt nach mds konvertieren			MDSModel model2 = new XMIHandlerImpl().mapXMI2MDS(file1);						// dabei neu entstandenes model auf server ablegen			server.insertModel(rhref, model2);						// und xmi-reprsentation ausprinten			System.out.println(model2.getXmiFile().getContent());						// und dtd-reprsentation ausprinten			System.out.println(model2.getDtdFile().getContent());					} catch (Exception e) {			e.printStackTrace();		}				//System.out.println(server);				//System.out.println(model.getSchemaFile().getContent());	}