// load a template with a totally different name from this package using
// this component's class loader
final URL url = PageWithCustomLoading.class.getResource("CustomLoadedTemplate.html");
if (url != null)
{
return new UrlResourceStream(url);
}
// no resource was not found
return null;
}