public class Handler
extends URLStreamHandler {
protected URLConnection openConnection(URL url)
throws IOException {
if (url.getProtocol().equalsIgnoreCase("war")) {
return new WARConnection(url);
} else {
String msg = "not sure how to provide the requested handler";
throw new IOException(msg);
}