package com.onaro.util; import java.util.*; public class ResourceBundleChain extends ResourceBundle{ private ResourceBundle son; public ResourceBundleChain(ResourceBundle parent,ResourceBundle son) { assert son != null: "son is null"; //$NON-NLS-1$ assert parent != null: "parent is null"; //$NON-NLS-1$ this.son = son; setParent(parent); } public Enumeration getKeys() { return son.getKeys(); } protected Object handleGetObject(String key) { try { //calling to getObjet results throwing of MissingResourceException if the key does not exist... return son.getObject(key); } catch (MissingResourceException e) { return null; } } }