}
private Resource getImportedResource(String importedResource) throws IOException {
try {
if (importedResource.startsWith("http:") || importedResource.startsWith("https:")) {
return new HttpResource(importedResource);
} else {
return resource.createRelative(importedResource);
}
} catch (URISyntaxException e) {
throw (IOException) new IOException(importedResource).initCause(e);