Java tutorial
//package com.java2s; import org.w3c.dom.bootstrap.DOMImplementationRegistry; public class Main { @SuppressWarnings("unchecked") public static <T> T getDOMImplUncached() { try { DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance(); return (T) registry.getDOMImplementation("LS 3.0"); } catch (Exception e) { throw new RuntimeException(e); } } }