private static void loadConfigFile(InputStream stream, String fileName, String[]... parameters) throws IOException { UCNProperties properties = new UCNProperties(); logger.debug("Loading config file: " + fileName); for (String[] param : parameters) { if (param.length == 2 && param[1] != null) properties.put(param[0], param[1]); } properties.load(stream); properties.parse(); unicornPropertiesFiles.put(fileName, properties); logger.debug("> " + fileName + ":" + properties); }