private class InstructionAdder implements ImportInstructionDispatcher,
ActionListener {
public Object dispatch(ImportDirectoryInstruction instr) {
String prefix = instr.getPrefix();
ImportDirectory importDir = ImportDirectoryFactory.getInstance()
.get(instr.getURL(), instr.getDirectory());
if (importDir == null)
return null;
String oldURL = instr.getURL();
String newURL = importDir.getRemoteLocation();
if (newURL != null && !newURL.equals(oldURL)) {
instr.setURL(newURL);
urlValueChanged = true;
}