question: public static Properties readProperties ( String name ) { Properties props = new Properties ( ) ; if ( globalLoader != null ) { InputStream is = null ; try { String serviceFile = "META-INF/services/" + name . toLowerCase ( ) + ".properties" ; Enumeration < URL > locs = globalLoader . getResources ( serviceFile ) ; while ( locs . hasMoreElements ( ) ) { URL loc = locs . nextElement ( ) ; if ( loc != null ) { try { is = loc . openStream ( ) ; Properties p = new Properties ( ) ; p . load ( is ) ; props . putAll ( p ) ; } finally { if ( is != null ) { is . close ( ) ; } } } } } catch ( IOException ex ) { LOG . log ( Level . SEVERE , null , ex ) ; } finally { try { if ( is != null ) { is . close ( ) ; } } catch ( IOException ex ) { LOG . log ( Level . SEVERE , null , ex ) ; } } } return props ; }
target:  Read a file in the META-INF/services named name appended with  ".properties" If no file is found, then a an empty Property instance will be returned