}
return new URLContent(url);
} catch (MalformedURLException ex) {
if (furnitureUrl == null) {
// Otherwise find if it's a resource
return new ResourceURLContent(DefaultFurnitureCatalog.class, contentFile, multiPartModel);
} else {
try {
return new ResourceURLContent(new URL("jar:" + furnitureUrl + "!" + contentFile), multiPartModel);
} catch (MalformedURLException ex2) {
throw new IllegalArgumentException("Invalid URL", ex2);
}
}
}