while(!descriptors.isEmpty()) {
final BackupDescriptor descriptor = descriptors.pop();
final EXistInputSource is = descriptor.getInputSource();
is.setEncoding( "UTF-8" );
final RestoreHandler handler = new RestoreHandler(listener, uri, username, password, descriptor);
reader.setContentHandler(handler);
reader.parse(is);
}