public synchronized static void writeData(ServletContext context) {
public static void writeData(ServletContext context) {
    public synchronized static void writeData(ServletContext context) {        try {            ObjectOutputStream o = new ObjectOutputStream(                                    new FileOutputStream(dataFile(context)));            o.writeObject(instance);            o.close();        } catch (Exception e) {            context.log("writeData", e);        }    }