private final class PersistenceArrayListConverter implements Converter {
public void marshal(Object source, HierarchicalStreamWriter writer,
MarshallingContext context) {
final XmlArrayList list = new XmlArrayList(new FilePersistenceStrategy(dir, xstream));
context.convertAnother(dir);
list.addAll((Collection)source);
}
public Object unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context) {
final File directory = (File)context.convertAnother(null, File.class);