Code example for PropertyResourceBundle

0
        try { 
            final InputStream inputStream = UriAccessor.accessUri(propertiesFileName);
            if (inputStream == null) {
                return null; 
            } else { 
                return new PropertyResourceBundle(inputStream);
            } 
        } catch (IllegalArgumentException iae) {
            return null; 
        } catch (MissingResourceException mrex) {
            return null; 
        } catch (URISyntaxException e) {
            return null; 
        } catch (IOException e) {
            return null; 
        } 
    } 
}