Fixed a nasty error with multiple attempts to register the "classpath:" URLStreamHandlerFactory.