File rmstate = new File(storedir, STATE_F);
try {
FileOutputStream fos = new FileOutputStream(rmstate);
OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
Writer writer = new BufferedWriter ( osw );
AttributeHolder statearray[] = { state };
serializer.writeResources(statearray, writer);
} catch (Exception ex) {
// FIXME !!
System.out.println("ResourceStoreManager: unable to save state !");
ex.printStackTrace();