String host = url.getHost().toLowerCase();
if (LOCAL_HOST.equals(host)) {
String urlString = url.toString();
String ftpURLString = urlString.replaceFirst("file", "ftp");
URL ftpURL = new URL(ftpURLString);
fileContents = new DefaultContent(ftpURL);
} else {
FileReader reader = new FileReader();
try {
fileContents = reader.read(new URI(url.toExternalForm()), timeout);