public static void save(Document doc){
		try (
				OutputStream file = new FileOutputStream(SAVE_PATH+doc.getName());
				OutputStream buffer = new BufferedOutputStream(file);
				ObjectOutput output = new ObjectOutputStream(buffer);
				){
			output.writeObject(doc);
			System.out.println("Document saved.");
		}  
		catch(IOException ex){
			ex.printStackTrace();
		}
	}