public static boolean write(Object obj, String path)
    {
	try
	{
	    XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream( new FileOutputStream(path)));
	    encoder.writeObject(obj);
	    encoder.close();
	    return true;
	}
	catch(Exception e){System.out.println(e.toString());return false;}
    }