// use the Singleton factory method.
private URLProtocolManager()
{
mProtocols = new ConcurrentHashMap<String, IURLProtocolHandlerFactory>();
// Always register the DEFAULT
registerFactory(DEFAULT_PROTOCOL, new FileProtocolHandlerFactory());
// And the NULL protocols
registerFactory(NULL_PROTOCOL, new NullProtocolHandlerFactory());
}