@ Nullable public static Properties loadPropertiesFromResource ( URL resource ) { try ( InputStream stream = resource . openStream ( ) ) { return loadProperties ( stream ) ; } catch ( IOException e ) { LOG . warn ( "Failed to read properties from {}: {}" , resource , e . toString ( ) ) ; return null ; } }
Loads properties from a resource .