throws IOException
{
ObjectOutputStream.PutField putFields = out.putFields();
for (int i = 0 ; i < serialPersistentFields.length ; i++) {
ObjectStreamField field = serialPersistentFields[i];
if (field.getName().equals("name")) {
putFields.put(field.getName(), name);
}
else if (field.getName().equals("resourceBundleName")) {
putFields.put(field.getName(), resourceBundleName);
}
else if (field.getName().equals("value")) {
putFields.put(field.getName(), value);
}
// if a field name is unknown it looks like the Level class
// evolved, but we are in no position to provide a meaningful
// value, so therefore don't provide a value as the putField