try
{
uis = new URLInputStream(source, System.getProperty("http.agent.discoverer"));
uis.setRedirectionListener(listener);
XMLFormatDetector detector = new XMLFormatDetector();
XMLFormat fmt = detector.detect(uis);
detected = fmt != null && fmt != XMLFormat.OPML;
} catch (IOException e)
{
throw new UrlDiscovererException(e);