/** {@inheritDoc} */ public ApplicationResource getResource(ApplicationResource base, Locale locale) { try { URL url = servletContext.getResource(base.getLocalePath(locale)); if (url != null) { return new URLApplicationResource(base.getPath(), locale, url); } else { return null; } } catch (MalformedURLException e) { return null; } }
/** {@inheritDoc} */ public ApplicationResource getResource(ApplicationResource base, Locale locale) { try { URL url = context.getResource(base.getLocalePath(locale)); if (url != null) { return new URLApplicationResource(base.getPath(), locale, url); } else { return null; } } catch (MalformedURLException e) { return null; } }