public Properties readConfigProps(String propFile) {
        final InputStream ins = getClass().getClassLoader().getResourceAsStream(propFile);
        if (ins == null) {
            throw new IllegalStateException("Not found the config file in classpath: " + propFile);
        }
        final Properties props = new Properties();
        try {
            props.load(ins);
        } catch (IOException e) {
            throw new IllegalStateException("Failed to load the config resource as stream: " + propFile, e);
        } finally {
            try {
                ins.close();
            } catch (IOException ignored) {}
        }
        return props;
    }
public Properties readConfigProps ( String propFile ) { final InputStream ins = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( propFile ) ; if ( ins == null ) { throw new IllegalStateException ( "Not found the config file in classpath: " + propFile ) ; } final Properties props = new Properties ( ) ; try { props . load ( ins ) ; } catch ( IOException e ) { throw new IllegalStateException ( "Failed to load the config resource as stream: " + propFile , e ) ; } finally { try { ins . close ( ) ; } catch ( IOException ignored ) { } } return props ; }
====================