final ProtocolFileFilter filter) throws RemoteConnectionException {
for (int i = 0; i < 3; i++) {
try {
return protocolHandler.nextPage(protocolHandler
.getAppropriateProtocol(dir, true, true),
new ProtocolFileFilter() {
public boolean accept(ProtocolFile file) {
return filter.accept(file)
&& !FileRetrievalSystem.this
.isDownloading(file);
}