private final Properties loadPropertiesFile ( WsResource res ) throws IOException { Properties props = new Properties ( ) ; InputStream is = res . get ( ) ; try { props . load ( is ) ; } catch ( IOException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( this , tc , "Error loading properties; " + e ) ; } throw e ; } finally { if ( is != null ) try { is . close ( ) ; } catch ( IOException e ) { } } return props ; }
Load the contents of the properties file .