/** * Configures the factory from the specified URL. * * @param url the URL to load properties from * @throws IOException if the properties cannot be read */ private void add(URL url) throws IOException { Properties properties = new Properties(); InputStream stream = url.openStream(); try { properties.load(stream); } finally { stream.close(); } add(properties, url); }