code: public URL getResource(String name, BeanContextChild bcc)
          throws IllegalArgumentException
      {
          ServletContext sc = getServletContext();
          if ( sc != null )
          {
              try
              {
                  return sc.getResource( name );
              }
              catch ( MalformedURLException mue )
              {
                  throw new IllegalArgumentException( mue.getMessage() );
              }
          }
  
          return null;
      }
docs: Override BeanContext.getResource() so it delegates to the current ServletContext.
  
  @param name the resource name
  @param bcc the specified child
  @return a <code>URL</code> for the named
  resource for the specified child
  @throws IllegalArgumentException <code>IllegalArgumentException</code> if the resource is not valid