*/
public static void doImport(Importer aImporter, String aUrl, final boolean aSingle,
final boolean aAppending, final GlobalModel aModel,
final boolean isConfirmationRequired)
{
OPMLGuideSet guideSet = null;
URL baseUrl = null;
try
{
try
{
baseUrl = new URL(aUrl);
} catch (MalformedURLException e)
{
throw ImporterException.malformedUrl(e.getMessage());
}
guideSet = aImporter.process(baseUrl, aSingle);
} catch (ImporterException e)
{
processException(e);
}
if (guideSet != null)
{
final OPMLGuide[] aGuides = guideSet.getGuides();
final URL aBaseUrl = baseUrl;
// Do actual addition of data in EDT
SwingUtilities.invokeLater(new Runnable()
{