if (links.containsKey(pathInfo)) {
return links.get(pathInfo);
}
try {
return new WrapperResource(
new FileResource(
URI.create(getResourceBase() + pathInfo).toURL()));
} catch (IOException e) {
throw new SomethingWidgyHappenedError(e);
} catch (URISyntaxException e) {
throw new SomethingWidgyHappenedError(e);