code: public void initialize(BeanContext context, Resource resource) {
          if (LOG.isDebugEnabled()) {
              LOG.debug("initialize (" + context + ", " + resource + ")");
          }
          this.context = context;
          this.resource = ResourceHandle.use(resource);
      }
docs: This basic initialization sets up the context and resource attributes only,
  all the other attributes are set 'lazy' during their getter calls.
  
  @param context  the scripting context (e.g. a JSP PageContext or a Groovy scripting context)
  @param resource the resource to use (normally the resource addressed by the request)