{
InputSource source = new InputSource(resourceURL.openStream());
_reader.parse(source);
return new ComponentTemplateImpl(_templateResource, _tokens, _componentIds);
}
catch (Exception ex)
{
// Some parsers get in an unknown state when an error occurs, and are are not
// subsequently useable.