private static boolean store(Object data, String name)
    {

        String nomFichier;
        FileOutputStream f = null;
        ObjectOutputStream out = null;
        if(data == null) return false;
        File file = new File("");
        String path = "";

        try
        {
            path = file.getCanonicalPath().toString();
            path += "\\jars\\sauvegarde\\";

        }
        catch(IOException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        nomFichier = path;
        nomFichier += name + ".data";
        try
        {
            f = new FileOutputStream(nomFichier);
        }
        catch(FileNotFoundException e)
        {
            // TODO Auto-generated catch block
            return false;
        }
        try
        {
            out = new ObjectOutputStream(f);
        }
        catch(IOException e)
        {
            // TODO Auto-generated catch block
            return false;
        }
        try
        {
            out.writeObject(data);

        }
        catch(IOException e)
        {
            // TODO Auto-generated catch block
            return false;
        }
        System.out.println(nomFichier + " ok");
        return true;

    }