private static Object load(String name)
    {
        //String nomFichier;
        FileInputStream f = null;
        ObjectInputStream in = null;

        Object resultat;

        try
        {
            f = new FileInputStream(name);
            System.out.println("test1");
        }
        catch(FileNotFoundException e)
        {
            // TODO Auto-generated catch block
            return null;
        }

        try
        {
            in = new ObjectInputStream(f);
        }
        catch(IOException e)
        {
            // TODO Auto-generated catch block
            return null;
        }

        try
        {
            resultat = in.readObject();
        }
        catch(Exception e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
            return null;
        }

        System.out.println("Chargement ok : " + nomFichier);
        return resultat;
    }