Code example for TransformerConfigurationException

0
		InputStream is = null;
		try { 
			is = url.openStream();
			source = new StreamSource(is);
		} catch (final IOException ex) {
			throw new TransformerConfigurationException(ex);
		} 
		final Templates templates = super.newTemplates(source);
		try { 
			is.close();
		} catch (final IOException ex) {
			throw new TransformerConfigurationException(ex);
		} 
		if (templates == null) {
			throw new RuntimeException(
					"Failed to create templates for stylesheet " 
							+ url.getPath());
		} 
 
		this.templatesCache.put(url.getPath(), templates);
Stop searching for code, let great code find you!  Add Codota to your java IDE