// Registering a new protocol handler com.mydomain.protocol.xxxx.Handler
System.setSystemProperty( "java.protocol.handler.pkgs", "com.mydomain.protocol" );