code: public String getProperty(String string, String def) {
  		String rv = null;
  
          if ( props != null )
              rv = props.getProperty( string, def );
          
  		if(rv==null) {
              rv = context.getInitParameter(string);
  		}
  		return rv==null?def:rv;
  
  	}
docs: Get the Property from Context