@Override
public Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor) {
if (url != null && (url.matches(PATTERN_SESSION))) {
try {
URL u = new URL(url);
loader = new Loader(Utils.openURL(u), u.toURI(), url.endsWith(".joz"));
return Main.worker.submit(loader);
} catch (URISyntaxException | IOException e) {
Main.error(e);
}
}