/* If the URL points to a disk directory */
if (protocol.equals(WFS.FILE_PROTOCOL) == true) {
return new FileWFS(url.getPath(), false);
}
else if (protocol.equals(WFS.JAR_PROTOCOL) == true) {
return new ArchiveWFS(url);
}
else {
throw new InvalidWFSException("Invalid Protocol for WFS Given: " + url.toString());
}
}