 try(InputStream configFile = getClass().getClassLoader().getResourceAsStream("logging.properties")) {         LogManager.getLogManager().readConfiguration(configFile);     } catch (IOException e) {         throw new IllegalStateException("Unable to load default logging properties.", e); 