code: private void initReader(Object obj) {
  		if (obj instanceof WorkingDirectoryLocationAware) {
  			((WorkingDirectoryLocationAware) obj).setWorkingDirectory(workingDirectory);
  		}
  		if (obj instanceof ServletContextAware) {
  			((ServletContextAware) obj).setServletContext(servletContext);
  		}
  
  		if (obj instanceof ResourceBrowser) {
  			if (obj instanceof ResourceGenerator) {
  				resourceGeneratorInfoProviders.add(0, (ResourceBrowser) obj);
  			} else {
  				servletCtxResourceBrowser = (ResourceBrowser) obj;
  			}
  		}
  	}
docs: Initialize the reader
  
  @param obj
  the reader to initialize