if (u == null)
throw new IllegalArgumentException("The URI must not be null");
final ServletHandler handler = new ServletHandler();
if (initParams == null) {
handler.addInitParameter(ClasspathResourceConfig.PROPERTY_CLASSPATH,
System.getProperty("java.class.path").replace(File.pathSeparatorChar, ';'));
} else {
for (Map.Entry<String, String> e : initParams.entrySet()) {
handler.addInitParameter(e.getKey(), e.getValue());
}