Code example for PropertyResourceBundle

0
	} 
 
	private void loadDefaultValidationProperties() throws IOException {
		InputStream in = this.getClass()
				.getResourceAsStream( DEFAULT_PROPERTIES_FILE_NAME );
		PropertyResourceBundle propertyBundle = new PropertyResourceBundle( in );
		setParent( propertyBundle );
	} 
 
	protected Object handleGetObject(String key) {
		return messages.get( key );
	} 
 
	public Enumeration<String> getKeys() {
		throw new RuntimeException( "Not needed for testing purposes." );
	} 
}