public static ApplicationDescriptor generateApplication(ApplicationDescriptor appDesc, int numVs){
		ApplicationDescriptor appGenerated = null;
		try {
			Collection<OVFVirtualNetwork> virtNets = new ArrayList<OVFVirtualNetwork>();
			Collection<SharedDisk> sharedDisks = new ArrayList<SharedDisk>();
			Collection<Disk> disks = new ArrayList<Disk>();
			for(ApplianceDescriptor appliances: appDesc.getAllAppliances()){
				for (OVFVirtualNetwork net1 : appliances.getAssociatedVirtualNetworks()){
					boolean toAdd=true;
					for(OVFVirtualNetwork net2 : virtNets){
						if(net1.getName().equals(net2.getName()))
							toAdd=false;
					}
					if(toAdd) virtNets.add(net1);
				}
				
				for (Disk disk : appliances.getDisks()){
					if(!disks.contains(disk)){
						disks.add(disk);
					}
				}
			}
//			for (Disk disk : disks) //System.out.println(disk.getId()); 			
//			for (OVFVirtualNetwork net : virtNets) System.out.println(net.getName()); 	
			
			appGenerated=  TestOVFParser.generateVirtualSystem(appDesc,disks,virtNets,numVs);
		} catch (Exception e) {
			System.out.println("\n***ERROR IN RENDERING OVF FILE***\n");
			e.printStackTrace();
		}
		return appGenerated;
	}