try {
url = ((RemoteSiteFile) protocol.pwd()).getSite().getURL();
LOG.log(Level.INFO, "Disconnecting protocol from " + url);
protocol.close();
} catch (Exception e) {
throw new RemoteConnectionException("Error disconnecting from " + url
+ " : " + e.getMessage());
}
}