protected Properties loadProperties(String fileName) { final Properties props = new Properties(); final InputStream ins = LastaDiProperties.class.getClassLoader().getResourceAsStream(fileName); if (ins == null) { return null; } try { props.load(ins); } catch (RuntimeException | IOException e) { handleLoadingFailureException(fileName, e); } finally { try { ins.close(); } catch (IOException ignored) {} } mergePropIfExists(fileName, props); return props; }